1. Re: new truecolor library
- Posted by Mark Smith <markrsmith at BTINTERNET.COM> Nov 05, 1998
- 392 views
- Last edited Nov 06, 1998
I'm a one week newbie on Euphoria so I may be running ahead of myself but I am having trouble getting the truecolor library to work. I've run the trutwnkl.ex demo and that seems to work with random coloured dots appearing on the screen. I've also installed the updated truecolr.ex and run the setup ex to run in 640 x 480. I thought I would try my own code but what appears on the screen isn't what I would expect. The code is:- ----------code begin------------ include truecolr.e atom delay InitDisplay() --let the display "settle" from the mode switch delay = time() + 0.7 --seconds while time()<delay do --some yawning, stretching, scratching... etc... end while true_circle({200,200}, 1, {255,255,255}) true_pixel({100,100},{255,255,255}) true_line(150,300,100,150,TrueBlue) --------------code end-------------- What I get on the screen for the circle and the line are diagonal dots placed across the screen not a circle or a line. This also applied with code I used for the filled box. I assume the origin {0,0} is the top left corner because if it is the true_pixel code didn't seem to work as it placed the pixel way over on the right of the screen. I've also run Irv Mullins code which produced diagonal lines for the boxes and a screen of lots of closely packed lines for the clouds.bmp. Can anybody provide any clues to what I'm doing wrong. Mark Smith Mark's Leisure Zone http://www.btinternet.com/~markrsmith