Real Test3

Pb-passage2
http://blog.nihilogic.dk/ HTML5 Canvas Cheat Sheet v1.1 Canvas elementCompositing AttributesAttributes Name Type DefaultName Type Default width unsigned long 300globalAlpha float 1.0 height unsigned long 150globalCompositeOperation stringsource-over Methods Supports any of the following values: Return Name string toDataURL( [Optional] string type, [Variadic] any args) Object getContext( string contextId) source-over source-in source-out 2D Context Attributes Name Type canvas HTMLCanvasObject [readonly] source-atop destination-over destination-in Methods Return Name void save( ) void restore( ) destination-out destination-atop lighter Transformation Methods Return Name void scale( float x, float y) void rotate( float angle) copy xor void translate( float x, float y) void transform( Line styles float m11, float m12, float m21, float m22, Attributes float dx, float dy) Name Type Default void setTransform( float m11, float m12, lineWidth float 1.0 float m21, float m22, lineCap string butt float dx, float dy) Supports any of the following values: buttroundsquare Image drawing Methods Return Name void drawImage( lineJoin string miter Object image, Supports any of the following values: float dx, float dy, roundbevelmiter [Optional] float dw, float dh) Argument "image" can be of type HTMLImageElement, HTMLCanvasElement or HTMLVideoElement void drawImage( Object image, miterLimit float 10 float sx, float sy, float sw, float sh, float dx, float dy, float dw, float dh) Colors, styles and shadowsText AttributesAttributes Name Type DefaultName Type Default strokeStyle any blackfont string 10px sans-serif fillStyle any blacktextAlign string start Supports any of the following values: shadowOffsetX float 0.0 [start, end, left, right, center] shadowOffsetY float 0.0 textBaseline string alphabetic shadowBlur float 0.0 Supports any of the following values: shadowColor string transparent black [top, hanging, middle, alphabetic, ideographic, bottom] Methods Methods Return Name Return Name CanvasGradient createLinearGradient( void fillText( float x0, float y0, float x1, float y1) string text, float x, float y, CanvasGradient createRadialGradient( [Optional] float maxWidth) float x0, float y0, float r0, void strokeText( float x1, float y1, float r1) string text, float x, float y, CanvasPattern createPattern( [Optional] float maxWidth) Object image, string repetition) TextMetrics measureText( string text) Argument "image" can be of type HTMLImageElement, HTMLCanvasElement or HTMLVideoElement TextMetrics interface "repetition" supports any of the following values: width float [readonly] [repeat (default), repeat-x, repeat-y, no-repeat] CanvasGradient interface Rectangles void addColorStop( Methods float offset, string color) Return Name CanvasPattern interface void clearRect( No attributes or methods. float x, float y, float w, float h) void fillRect( Paths float x, float y, float w, float h) void strokeRect( Methods float x, float y, float w, float h) Return Name Pixel manipulation void beginPath( ) void closePath( ) Methods void fill( ) void stroke( ) Return Name void clip( ) ImageData createImageData( float sw, float sh) void moveTo( float x, float y) ImageData createImageData( ImageData void lineTo( float x, float y) imagedata) void quadraticCurveTo( ImageData getImageData( float cpx, float cpy, float sx, float sy, float sw, float sh) float x, float y ) void putImageData( void bezierCurveTo( ImageData imagedata, float cp1x, float cp1y, float dx, float dy, float cp2x, float cp2y, [Optional] float dirtyX, float dirtyY, float x, float y ) float dirtyWidth, float dirtyHeight) void arcTo( ImageData interface float x1, float y1, float x2, float y2, float radius ) width unsigned long [readonly] void arc( height unsigned long [readonly] float x, float y, float radius, data CanvasPixelArray [readonly] float startAngle, float endAngle, CanvasPixelArray interface boolean anticlockwise ) void rect( float x, float y, float w, float h) length unsigned long [readonly] boolean isPointInPath( float x, float y) Source: http://www.whatwg.org/specs/web-apps/current-work/ (2009-05-04)

Comments On Real Test3

More Historical Fiction Passages