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

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:

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
setColor(newColor: String) Sets the new color to be used for filling.
setOpacity(newOpacity: Number) Sets the new opacity of the solid fill.
setEnabled(enabled: Boolean) Sets whether or not to disable the fill.
Getters
getColor() : String Gets the current color used for filling.
getOpacity() : Number Gets the current opacity of the fill object.
isEnabled() : Boolean Determines whether the fill object is currently enabled or not.

Method Detail

setColor(newColor: String)

 
solid-fill.txt Ā· Last modified: 2012/09/11 18:09 (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