Write whatever code you like - or click on the blue code text to kickstart your coding efforts.
Don't forget to create the bitmap
first! ("Create Bitmap")
| Create Bitmap: | bitmap = new Bitmap(20,20,{blankColor: "wheat", container:bitmapContainer}) |
| Destroy Bitmap: | bitmap.destroy(); |
| Draw Point: | bitmap.drawPoint(5,10,"yellow") |
| Draw Line: | bitmap.drawLine(2,2,15,15,"aqua") |
| Filled Rect: | bitmap.drawFilledRect(4,5,10,8,"#ff8800") |
| Gradient: | for (var x=0;x!=10;x++) { c="rgb("+((100-(100*x)/20)) + "%,50%,"+((100*x)/20)+"%)" ;bitmap.drawLine(0,x,x,x+x,c); bitmap.drawLine(19,x,19-x,x+x,c); } |
|
|
|