News : The level of daily SPAM has reached insane proportions, all registrations are now manual. I ask you to send me an e-mail (john (at) murga (dot) org), to confirm that you want me to create an account for you.


Post Reply  Post Thread 
Drawing pixel to window
Author Message
chrimo
Member
***


Posts: 94
Group: Registered
Joined: May 2007
Status: Offline
Reputation: 0
Post: #1
Drawing pixel to window

Hello,

what is the easiest way to set pixel inside a window ?
I'd like to open a window and set pixels:

Code:
version="0.0001a"
window = fltk:Fl_Double_Window(100,64,"displaycc");
window:tooltip("pbLua displaycc by Chrimo and friends "..version);
window:color(55);
window:align(fltk.FL_ALIGN_CENTER);
window:position(10,10);

-- fltk.fl_draw("???",x,y)

function quit_callback(object)
        if fltk.fl_ask("Are you sure to quit now ?") >= 1 then
                window:hide()
        end
end

window:callback(quit_callback)

window:show();
Fl:run();


Nothing happens... ;-(
Is fl_draw the right function to set pixels ??? I'd like to draw something like trigonometric functions or some kind of mathematic function plotter...
I'm using murgaLua 0.5.5 at OSX (PPC)

Thanks for some hints or ideas to make it better
Bye
Christian

This post was last modified: 08-12-2007 06:44 AM by chrimo.

08-12-2007 06:43 AM
Find all posts by this user Quote this message in a reply
Post Reply  Post Thread 

Messages In This Thread
Drawing pixel to window - chrimo - 08-12-2007 06:43 AM
RE: Drawing pixel to window - iGame3D - 08-12-2007, 08:38 AM
RE: Drawing pixel to window - chrimo - 08-12-2007, 09:13 AM
RE: Drawing pixel to window - chrimo - 08-12-2007, 10:38 AM
RE: Drawing pixel to window - iGame3D - 08-12-2007, 10:52 AM
RE: Drawing pixel to window - chrimo - 08-12-2007, 11:00 AM
RE: Drawing pixel to window - JohnMurga - 08-12-2007, 10:15 PM
RE: Drawing pixel to window - chrimo - 08-13-2007, 12:33 AM
RE: Drawing pixel to window - JohnMurga - 08-13-2007, 04:47 AM
RE: Drawing pixel to window - iGame3D - 08-12-2007, 01:16 PM
RE: Drawing pixel to window - chrimo - 08-13-2007, 02:07 AM
RE: Drawing pixel to window - chrimo - 08-13-2007, 07:27 AM
RE: Drawing pixel to window - iGame3D - 08-13-2007, 07:42 PM
RE: Drawing pixel to window - chrimo - 08-13-2007, 09:14 PM

View a Printable Version
Send this Thread to a Friend
Subscribe to this Thread | Add Thread to Favorites

Forum Jump: