Draw pixel from script - General Discussion and Assistance - CHDK Forum supplierdeeply

Draw pixel from script

  • 1 Replies
  • 1989 Views
Draw pixel from script
« on: 18 / March / 2010, 19:19:06 »
Advertisements
Hello,

I'd like to find a way to manipulate pixels on the LCD from script.  I've tried building CHDK with a new uBasic command "draw_pixel", which calls the draw_pixel() function, however this has met with no success.  A script using the command will run, but no pixels are changed on-screen.

Thanks,

Peter

*

Offline reyalp

  • ******
  • 13619
Re: Draw pixel from script
« Reply #1 on: 18 / March / 2010, 22:13:47 »
The drawing should probably happen in the spytask task which draws most of the rest of the CHDK gui, and be repeated on each re-draw as long as you want the pixel to be visible. So I would suggest that the script commands built up a list of things to draw, and some code in the gui actually takes care of drawing them.

Scripts run in the kbd (aka physw) task.
Don't forget what the H stands for.

 

Related Topics