A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: filling one pixel

  1. #1
    Game Master ConnELITE's Avatar
    Join Date
    Apr 2005
    United States, DC

    filling one pixel

    Hi, does anyone know a way I could use the graphics method to fill only one pixel on the screen with a solid color?

    For example, if I wanted to fill pixel (100, 100) and make it green, how would I do this or is it even possible?

    All the graphics functions seem to only be able to work if you give it two seperate points, but I just want to fill one.

    Any help appreciated.

  2. #2
    5+5=55 Schfifty Five's Avatar
    Join Date
    Jun 2006
    You could use either:


    or make a new bitmapData object and set a single pixel of that using setPixel();.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Click Here to Expand Forum to Full Width

HTML5 Development Center