UPDATE: I’ve added some controls to adjust the brush size. For my term project for Interface Design, I chose to develop SketchKit, a drawing application designed by
Lexter Ang. SketchKit is designed to helps kids learn how to draw using a tablet, a tutorial video and gives them control over brush sizes, angles and more. Right now I’m in the prototype stages and I decided that the best way to go was to use the Bitmap Data Object in flash so that the user had more flexibility when it came to drawing, erasing and using colours. The benefit to the Bitmap Data Object is that instead of rendering vector based images, flash uses actual bitmaps. It does this by changing the pixel values to correspond with the bitmap being pulled in. This way the file stays the same size since it’s just the pixel’s colours that are being changed. So, you could draw all day on the drawing surface and the application would never lag. The above is my first dive into AS3 and the Bitmap Object. In this case, flash changes the pixels on the white surface into the cyan ones as you draw. One obvious problem is that flash isn’t drawing in the brush fast enough, causing the gaps, even with the frame rate at 120fps. This will be the next thing I need to fix.You can grab the code
here.