Development applications HTML5 Canvas benefits

Posted by admin - October 22nd, 2011

Authors: Hailong (Catholic)
online Web page editor, who do not yet seven years ago, seven years later, has been all over the Internet.
As a developer, only the development of future applications can be popular, to make a fortune. With the emergence of HTML5 Canvas,
page drawing in the application, will become the “future of the mainstream.”
how to plot it on a web page? For example,
how the page displays a triangle with three points and controlling the shape of a triangle,
I mean is: When Drag any vertex of the time, you can change the shape of a triangle.
In practical applications, you will encounter “points, lines, isosceles triangle, trapezoid, rectangle, round …” the problem of painting,
If you want to draw a rectangle, you need the following function :
rect (in float x, in float y, in float w, in float h);
four parameters, but most people do not like HTML5 provides these functions, many people like the following Function:
function DrawRect (Canvas, A, C)
function: Canvas canvas, draw a rectangle, “A, C” is the rectangle of vertices
Why are there so situation, which also appears in other high-level programming language?
Since the system provides the mapping function is not suitable for programmers programming habits, then you need to change if,
into people like form. Thus, inevitably reduce the difficulty of programming.
I have converted a large number of functions in the form of popular, welcome to download.
Google Search: HTML5 Canvas elementary mapping function library
HTML5 Canvas elementary mapping function library
HTML5 JavaScript core
more …

Tags:

WebGL HTML5 Canvas 3D hardware-accelerated rendering

Posted by admin - October 22nd, 2011

WebGL is a 3D graphics standard, which allows graphics standard OpenGL ES 2.0 to JavaScript, and together, by increasing the OpenGL ES 2.0, a JavaScript binding, WebGL for HTML5Canvas provide hardware 3D acceleration rendering, so that Web developers graphics card can make use of the system to a more fluid in your browser to show 3D scenes and models, and can create complex navigation and data visualization. Obviously, WebGL development of technical standards eliminates the trouble of pages dedicated rendering plug-ins can be used to create 3D structures with complex web pages can even be used to design 3D web games.
WebGL and 3D graphics standard OpenGL, OpenCL specification as general-purpose computing from Khronos Group, and free, is expected to be completed during the first half of 2010 and publicly released. Adobe Flash 10, Silverlight 3.0 Microsoft also has support for GPU acceleration, but they are all private, non-transparent. WebGL standard working group members include AMD, Ericsson, Google, Mozilla, Nvidia and Opera, etc., these members will work together with the Khronos company to create a multi-platform environments available WebGL standard, the standard will be expected to WebGL the first half of 2010 first public release, the standard will be completely free of charge provided outside.
WebGL perfect solution to the existing Web interactive three-dimensional animation of two problems: First, it implements the Web via HTML script itself is interactive three-dimensional animation production, without any browser plug-in support; second, it advantage of the underlying graphics hardware acceleration for graphics rendering, through a unified, standard, cross-platform OpenGL interface implementation.
WebGL standards have been updated in Mozilla Firefox, Apple Safari and Google Chrome developer preview version of other browsers, the Web developers with the technical support system display chip in the browser and display a variety of 3D models scene, the future is expected to launch 3D games and complex 3D structure of web pages of your site.
Google as a member of the Khronos is helping to build WebGL specification to provide a web page in Canvas elements through hardware-accelerated 3D rendering. Today, the initial public draft specification WebGL released, Mac / Windows / Linux (32 and 64-bit) platform Chromium (the open source version of the Chrome browser) offer support for WebGL, and this is Apple (I was surprised by Google blog that Apple is actually still in Apple Computer, Inc.) and WebKit joint development results.
you can experience:
San Angeles: the future of the city (do rough)
Shiny teapot: shows a mixture of 3D graphics and Web page rendering capabilities
Particle system: demonstration How to use the GPU to do more animation
There
WebGL wiki offers more standard evolutionary process, including draft specifications, introductory articles, tutorials, mailing lists and forums.
Google hopes WebGL shape of the final standard as soon as possible, which is Google dragged people to the world of pure browser an important step.
Tip: let Chromium supports WebGL, need to add the boot parameter “- enable-webgl”. (Text / blogflex)
from:

Tags:

Use HTML5 Canvas API

Posted by admin - October 22nd, 2011

A test case
browser supports creating HTML5canvas elements, first make sure that the browser can support it. If not, you have those antique browser to provide some alternative text.
Second, add the canvas
page in the HTML page into the canvas element is very intuitive. Such as: canvas id = “c” widht = “300″ height = “225″ / canvas canvas used to set the style and many of the functions do not directly modify the appearance of the display of the results canvas. Only when applied to the path drawn (stroke) or fill (fill) method, the results will be displayed. Otherwise, the only display images, text, or draw, fill, and clear when the rectangular box, canvas will be immediately updated.
getContext (): get the type of canvas used. Such as: canvas.getContext ( d ;
Third, transform
know the easiest way is to transform it as a command issued between the developer and the canvas shows the results of a modified layer between the (modificationlayer). Regardless of whether the use of transformations in the development, there is always the correct layer.
correction – in the draw to say the system is changing – at the time should be applied in order, combination, or free to modify. The results of each drawing operation on the canvas before you do go through the correct layer correction.
reusable code on a limited public key recommendations: are generally drawn from the origin (0,0 point in the coordinate system), the application of transformation (scaling, translation, rotation, etc.), and then continue to modify the code until it reaches the desired effect.
From “HTML5 high-level programming.”

Tags:

HTML5 Canvas and JavaScript-based animation

Posted by admin - October 22nd, 2011

HTML5 Canvas and JavaScript-based animation 2010-06-28 17:09 HTML5 Canvas object will change the mission of JavaScript, making HTML5 scripting under the powerful animation tool. This article describes the eight you e never seen before, based on the HTML5 Canvas and JavaScript animation, these effects will make you incredibly impressed by the HTML5 completely. It should be noted that these are the native browser animation, without any plug-ins.
Tunnelers
pure JavaScript HTML5 Canvas to generate interactive animation, incredible.
The Mesmerizer
move the mouse in the grid, with the change in color and spread to the surrounding lattice, very psychedelic. Four corners of the grid point with the mouse or keyboard, you can see more amazing results.
Burn
move the mouse on the page, or click the mouse, this effect is difficult to believe that the native browser.
Cheloniidae Live
is based on pure JavaScript, but uses a JavaScript library. Very interesting, you can modify the JavaScript code to achieve their effects (but was a wall).
Canvas 3D engine
a 3D engine based on the Canvas. Currently only supports the default graphics, textures and basic interactive features.
Bomomo
is worth a try.
DDD
This interactive animation is also very interesting.
Plasma Tree
is Avatar.

Tags:

html5 canvas label (a)

Posted by admin - October 22nd, 2011

html5 canvas tag (A) 2010-07-15 20:40 canvas tag is heml5 emerging labels, canvas labels primarily for drawing and set the current Mozilla Firefox, Safari, Opera and Google Chrome supports the canvas tag.
current IE system does not yet support this browser canvas tag.
on the canvas to create three-dimensional layers:
canvas id = “myCanvas1″ No. 1 canvas / canvas
# myCanvas1 {border: 1px # 000 solid;}
function drawCanvas () {var canvas = document.getElementById ( yCanvas1 ; var ctx = canvas.getContext ( d ;// create a 2d canvas ctx.fillStyle = 66f ctx.fillRect (0,0,100,50); / / layer 1 ctx.fillStyle = 6ff ctx.fillRect (10,10,100,50); / / Layer 2 ctx.fillStyle = 000 ctx.fillRect (20,20,100,50); / / Layer 3 ctx.fillStyle = 666 ctx.fillRect (30,30,100,50); / / layer 4
}
draw lines on the canvas:
canvas id = “myCanvas2″ width = “200″ height = “100″ style = “border: 1px solid # c3c3c3;” the first two canvas / canvas var c2 = document.getElementById (“myCanvas2″); var cxt2 = c2.getContext (“2d”); cxt2.moveTo (40,20); / / starting point cxt2.lineTo (150,40); / / The first lines cxt2.lineTo (10,40); / / second line cxt2. stroke ();
create a number of cross-segments:
var c3 = document.getElementById (“myCanvas3″); var cxt3 = c3.getContext (“2d”); cxt3.moveTo (0,0) ; cxt3.lineTo (150,10); cxt3.lineTo (10,80); cxt3.lineTo (100,70); cxt3.lineTo (0,0); cxt3.stroke (); reproduced:

Tags:

friends exam results

Posted by admin - October 15th, 2011

friends exam results

aside to enjoy the sunshine
endorsement endorsement Ah Ah good
color language knowledge silent

lazy Xian hard < br />
their names do not now return

A wasted in vain A
bless me bless me
< IMG title = "LEISURE - C. KA - I BRING" alt = "LEISURE - C. KA - I BRING" style = "MARGIN: 0px 10px 0px 0px; WIDTH: 500px; HEIGHT: auto;" src = "http:/ / img.ph.126.net/Dv0dsXtXvgWkOnFPBS7Dsg == / 2378463553205333162.jpg ">
hole chicken hole chicken

I received friends about you about you about you
I was seriously generous!
rare leisurely

Edward the Air beans nail Ed
Do not pay attention you finish

The answer is definitely no.

Posted by admin - October 15th, 2011

Is leisure activity only for the rich? How do we ensure that all Singaporeans and its residents have access to leisure opportunities and facilities?

The answer is definitely no. Leisure is living in relative freedom from external compulsive forces of one culture and physical environment so as to be able to act from internally compelling love in ways which are personally pleasing, intuitively worthwhile, and provide a basis for faith. Rich may refer to wealth, but rich may also refer to intellectual achievement.
From above, the definition of leisure is not related to one social class and level of wealth and intelligence one holds. From Neulinger leisure paradigm, we know that as long as you are intrinsic motivated to enjoy the leisure activities and you have perceived freedom, you are free to leisure activities. From Iso-Ahola paradigm, one can enjoy leisure activities if one has high intrinsic motivation and self determination. And again , it is not in a strong link with the definition of “rich”.
But of course, not all the leisure activities are accessible to all Singaporeans and residents. Some leisure activities needs high cost to participant, like golfing, racing etc. the cost refers not only to the money involved, but also the time and energy spent in mastering the leisure activities. They have to attend the training and lessons to be able to participate. On the other hand, there are lots of constraints preventing them from participating leisure activities, like physical, perpetual and social constraints.
First of all, the whole society should provide many meaningful leisure activities and training opportunities, like some sports clubs, parks and leisure centres. With these activities available, those people have equal access and opportunities to leisure programs. Make the physical constraints lesser and many supportive facilities for all residents to have a try. For relatively high class leisure activities, make the training course cheaper and more accessible for them.
Secondly, due to the characteristics of individuals, they may suffer perpetual constraints. They may feel they are too busy in surviving to take part in leisure activities. But actually leisure plays a very important part in everyone life. It positively influences one perception of him or herself and empowers one to clarify their values ??and determine what is worth doing. And it is a good chance to express feelings and release stress. And almost everyone has a passion in doing something, and it can be simple but enjoyable like painting, listening to music and cooking, everyone can do that as long as they really like and enjoy that.
Lastly, due to reaction of others to them, they may suffer social constraints. They may be very sensitive and fragile. One word, facial expression and action by others may make them feel hurt. It seems that social constraints are the problems for them as social constraints cal affect their perceptual constraints as well. If Singaporeans have a good attitude and awareness towards them, being polite and considerate , it can reduce the social constraints. In order to improve the situation, education, leisure activities experience and volunteerism could affect their mindset and awareness positively. By changing attitudes and raising awareness, more and more Singaporeans and residents could have access to leisure opportunities and facilities.

evening the last ray of sun

Posted by admin - October 15th, 2011

evening the last ray of sun, marching canvas shoes, carrying a satchel, and a look out of the office tired, hungry.
Yes, the nutritional supplements, and they came to this familiar street.
Today Zhenre Nao, PubMed vigorous remedial classes to start the battle, coming and going west door, put my back up school freshman entered the scene, a sense of strangeness and anxiety mixed in the heart of the freshman. The same background, same as 30 ° of the air, not the same as I was two years old, I am familiar with one stone here, a wood and grass, I like standing on the balcony or watch the sunset on the corridors of the library, like the quiet Looking at the lake watching the swans a play, like a person in the playground quietly sing …… reminds me of a moment between the N and more beautiful picture. Ease of mind a lot.
big T-shirt, loose pack, holding a cup of tea and began to read on the roadside bookstall with all kinds of miscellaneous books, but only two went to a bookstore to Amoy Amoy, although nothing found But feeling tired already evaporated.
ran into a lot of acquaintances, all the way to say hello, smile all the way, all the way to pleasure. Met a couple and I wish them happiness; encounter students, I hope they are happy; encounter friends, not forgetting the many quack jack with them about. I I, on the road ahead, enjoy the scenery while walking, carrying joy and happiness ahead.
on the road, not forgetting a phone call to my dear mother, to know them well, my mood and status report, it seems faster than everyone updated. Mom and Dad, you are my strong backing and trust me most people, I heard your voices, I just feel at ease, my family is vested. Hey ~
summer wind gently blowing through the hair through the ears, Landy song faintly in my ear through, but already is not the same mood, the mood a little bit different, to enhance a grid, I like this feeling.
In order to live their lives, my most basic beliefs. Do the one

i should bestir myself

Posted by admin - October 15th, 2011

i hate today life, firstly i get up so late and i take all morning to watch TV, what is more when i wake up at afternoon, it is 16:00, oh my god, i waste all day in leisure, i am repentant
i don want to be lazy bone, tomorrow i will adjust my life and treat myself strict, i should bestir myself

The most popular online racing, ladies plus clothes

Posted by admin - October 15th, 2011

just created a When I found more and more friends around me are playing on the So I would have happily downloaded the The most popular online racing, ladies plus clothes
Dynamic music, the real racing feel, plus size dresses, fun track , border reward competition, romantic seaside city chat … … take you into a speed and dazzling, romantic leisure, Passion of the coaster world.
friends, plus size evening dresses, you also have to play Speed? ? Speed?? also love to play it? Leave me a message and let us go free appointment to run a race track to see who driving skills well. If you are a top player, that can make me Oh, ladies plus size clothes, my driving skills Well, really hard to say, arena see the outcome, huh, huh!
an appointment there or be square Oh, let us swimwww.cms2.cn

« Previous Entries