Rotating -Canvas Transformation method

Rotating -Canvas Transformation method

Fadıl

In the previous post, we discussed the canvas  translation method and now in this post, we will discuss another transformation method rotate. Using the rotate method we can rotate the canvas element around the origin.

Rotate

This method takes an angle as the parameter and the canvas element is rotated about this angle. This is shown in the figure below.

The rotation point is the origin of the canvas. In order to change the center point, we have to use the translate method.

Transforms-Canvas transformation element

Transforms-Canvas transformation element

Fadıl

This transform attribute in canvas transformation element it will allow us to modify the transformation matrix.

transform(m11, m12, m21, m22, dx, dy)

change strategy can be utilized to increase the present change grid with the framework depicted by

m11 m21 dx
m12 m22 dy
0 0 1

The transformation matrix must be marked infinity if any of the arguments are set infinite instead of throwing an exception.

setTransform(m11, m12, m21, m22, dx, dy)

How To Enable Or Disable AeroShake in Windows 10

Fadıl

Copy codes are given below into notepad and save them as a .reg file, double click on reg file to add them to the registry.
Restart the “Windows Explorer” process to apply changes.

Enable AeroShake :

Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\Explorer]
“NoWindowMinimizingShortcuts”=dword:00000001

Disable AeroShake :

Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\Explorer]
“NoWindowMinimizingShortcuts”=dword:00000001

Part 1:

What is AeroShake

AeroShake is a feature of Windows Explorer that allows you to quickly minimize and maximize all windows except current active window.

Fallback options in HTML5 audio and video tags

Fallback options in HTML5 audio and video tags

Fadıl

HTML5 provides a fallback option for its audio and video tag elements.  Some browsers still don’t support HTML5 and for those users, if HTML5 audio and video tags are used in a website they might miss the data in the audio and video tags, in such a case HTML5 provides us with a fallback option. An alternative option is to play the media in the specification supported by the browser.

Audio and Video in HTML5

Audio and Video in HTML5

Fadıl

HTML5 has inbuilt support for both audio and video tags

This following code explains about embedding a video element.

Let’s examine the code now;

<pre><video width="320" height="240" src="http://www.youtube.com/
watch?feature=player_embedded&v=dRcIrVHjUSs" controls="controls">
Your browser does not support the <code>video</code> element.
</video>

This sample example plays a video posted by quality point technologies in youtube.

Multiple file sources can be included in a single video tag using the tag <source>. They help us to provide video and audio in different formats in a different browser. For eg