CanvasGradient
An object representing a canvas gradient pattern
Supported Platform(s)
- BlackBerry OS 6.0+ |
- BlackBerry PlayBook 1.0+ |
- BlackBerry 10 |
- Ripple Emulator |
API | BB5.0 | BB6.0 | BB7.0 | PB1.0 | PB2.0 | BB10 | Ripple |
---|---|---|---|---|---|---|---|
addColorStop | Y | Y | Y | Y | Y | Y |
Configuration Document Settings
To use all of the API described for this object, you must ensure the following settings are in your configuration document: |
This API does not require a <feature> element to be declared in the configuration document of your BlackBerry WebWorks Application. |
Permission Elements (PlayBook and BlackBerry 10+) |
---|
This API does not require a <permission> element to be declared in the configuration document of your BlackBerry WebWorks Application. |
Functions
void | addColorStop |
Functions
void
addColorStop
(offset : Number, color : String)
Adds a color stop with the given color to the gradient at the given offset. 0.0 is the offset at one end of the gradient, 1.0 is the offset at the other end.
Supported Platforms | |
---|---|
- BlackBerry OS 6.0+ | |
- BlackBerry PlayBook 1.0+ | |
- BlackBerry 10 | |
- Ripple Emulator |
Parameters | |
---|---|
offset | the offset of the new stop |
color | the color of the new stop |
Throws | |
---|---|
INDEX_SIZE_ERR | If the offset is less than 0, greater than 1, infinite, or NaN |
SYNTAX_ERR | If the color cannot be parsed |
Documentation generated by JsDoc Toolkit 2.4.0 on Sun Dec 30 2012 18:15:33 GMT-0500 (EST)