Draw a pixel, by a french n00b

What is a Uzebox? How can I get one? Check here!

Draw a pixel, by a french n00b

Postby s3rg385 » Mon Apr 16, 2012 8:57 pm

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 !
s3rg385
 
Posts: 3
Joined: Mon Apr 16, 2012 8:53 pm

Re: Draw a pixel, by a french n00b

Postby uze6666 » Mon Apr 16, 2012 11:52 pm

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
User avatar
uze6666
Site Admin
 
Posts: 2670
Joined: Tue Aug 12, 2008 9:13 pm
Location: Montreal, Canada

Re: Draw a pixel, by a french n00b

Postby s3rg385 » Tue Apr 17, 2012 6:16 am

Ok thank you !
I'lll try the drawing in Gimp and convert it.
s3rg385
 
Posts: 3
Joined: Mon Apr 16, 2012 8:53 pm


Return to New to Uzebox? Start here!

Who is online

Users browsing this forum: No registered users and 1 guest