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
RE: Drawing pixel to window

Forget all I said before ;-(

This works fine at OSX Intel:

Code:
version="0.001";    
w = fltk:Fl_Double_Window(500,500,"Display Pixel murgaLua 0.5.5 OSX PPC");
w:tooltip("Pixeltest "..version);
w:color(55);
w:align(fltk.FL_ALIGN_CENTER);
w:position(10,10);


b=fltk:Fl_Button(200,450,100,40,"Display")
b:color(31);

function show()
    for x=0,500 do
        y=x;
        print("X:"..x.." Y:"..y);
        fltk.fl_color(0);
        fltk.fl_point(x,y);
        --fltk.fl_rectf(x,y,10,10);
        
    end
end

function show_callback(object)
    w:make_current();
    show();
end


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

b:callback(show_callback)
w:callback(quit_callback)
w:show();
Fl:run();


Cheers
Christian

08-13-2007 02:07 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: