JavaScript Graphics Library (JSGL.org) Draw and move interactive vector graphics easily in Javascript!

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

solid-fill [2013/03/14 03:17] (current)
Line 1: Line 1:
 +====== Solid Fill (class jsgl.fill.SolidFill) ======
 +
 +''jsgl.fill.SolidFill'' is a simple class for styling the **interior** of elements.
 +
 +Many JSGL elements use the class to specify their appearance:
 +  * [[Rectangle Element|Rectangle Element]] (''jsgl.elements.RectangleElement''),
 +  * [[Circle Element|Circle Element]] (''jsgl.elements.CircleElement''),
 +  * [[Ellipse Element|Ellipse Element]] (''jsgl.elements.EllipseElement''),
 +  * [[Polygon Element|Polygon Element]] (''jsgl.elements.PolygonElement''),
 +  * [[Curve Element|Curve Element]] (''jsgl.elements.CurveElement''),
 +  * [[Shape Element|Shape Element]] (''jsgl.elements.ShapeElement'').
 +
 +By default, each of these elements obtain its own fill object on instantiation, typically defining some very default properties (color="white", opacity=''1.0'', etc.).
 +
 +===== Method Summary =====
 +
 +^ Setters ^^
 +| ''[[Solid Fill#setColor]](newColor: String)'' | Sets the new color to be used for filling. |
 +| ''[[Solid Fill#setOpacity]](newOpacity: Number)'' | Sets the new opacity of the solid fill. |
 +| ''[[Solid Fill#setEnabled]](enabled: Boolean)'' | Sets whether or not to disable the fill. |
 +^ Getters ^^
 +| ''[[Solid Fill#getColor]]() : String'' | Gets the current color used for filling. |
 +| ''[[Solid Fill#getOpacity]]() : Number'' | Gets the current opacity of the fill object.  |
 +| ''[[Solid Fill#isEnabled]]() : Boolean'' | Determines whether the fill object is currently enabled or not. |
 +
 +===== Method Detail =====
 +
 +<html><code></html>
 +==== setColor(newColor: String) ====
 +<html></code></html>
 +
  
 
solid-fill.txt · Last modified: 2013/03/14 03:17 (external edit)
 
Except where otherwise noted, content on this wiki is licensed under the following license: GNU Free Documentation License 1.3
Driven by DokuWiki Powered by PHP Valid XHTML 1.0 Valid CSS