Class BB_Drawer
Defined in: Drawer.js.
Constructor Attributes | Constructor Name and Description |
---|---|
The background canvas
|
Method Attributes | Method Name and Description |
---|---|
hole(x, y, r, stroke)
Draw hole
|
|
info()
Draw the main scene informations
|
|
rand(value)
Generate random value
|
|
wood(x, y, w, h, r, stroke)
Draw wood pattern rectangle
|
Method Detail
hole(x, y, r, stroke)
Draw hole
- Parameters:
- {Number} x
- {Number} y
- {Number} r
- {Number} stroke
info()
Draw the main scene informations
{Number}
rand(value)
Generate random value
- Parameters:
- {Number} value
- Returns:
- {Number}
wood(x, y, w, h, r, stroke)
Draw wood pattern rectangle
- Parameters:
- {Number} x
- {Number} y
- {Number} w
- {Number} h
- {Number} r
- {Number} stroke