Draw a pixel, by a french n00b

What is a Uzebox? How can I get one? Check here!
Post Reply
s3rg385
Posts: 3
Joined: Mon Apr 16, 2012 8:53 pm

Draw a pixel, by a french n00b

Post by s3rg385 »

Hi all !

I'm a french n00b on Uzebox, and I want to draw a spiral (like the <3 dreamcast <3 boot screen).

I found something on generating a spiral, but I don't know how to draw a single pixel, using x and y coords.

Someone can help me ? :)

Thank you for this hudge project !
User avatar
uze6666
Site Admin
Posts: 4801
Joined: Tue Aug 12, 2008 9:13 pm
Location: Montreal, Canada
Contact:

Re: Draw a pixel, by a french n00b

Post by uze6666 »

Hi there!

The Uzebox does not have a frame buffer so you can't arbitrarily put pixels everywhere you'd like. That said, this can be done to some extent with the use of ramtiles (check the wiki for more on the subject). Currently this can in theory be done in video mode 3 but due to the very low number of ramtiles available, it's not useful. Now only mode 6 have a putpixel function in the demo project...check /demos/VectorDemo/VectorDemo.c for this (note that mode 6 is monochrome 1 bpp but supports 255 ramtiles).

The Uzebox is not well suited for "vector" graphics (i.e: dynamic lines, circles, points,etc). You would be better off creating the spiral/logo in a drawing program like Gimp and convert it to tiles with the gconvert tool.

-Uze
s3rg385
Posts: 3
Joined: Mon Apr 16, 2012 8:53 pm

Re: Draw a pixel, by a french n00b

Post by s3rg385 »

Ok thank you !
I'lll try the drawing in Gimp and convert it.
Post Reply