Shop OBEX P1 Docs P2 Docs Learn Events
Graphics Libraries — Parallax Forums

Graphics Libraries

thetribsterthetribster Posts: 11
edited 2009-06-04 23:20 in Propeller 1
Does anyone know of a graphics library for the prop? I'd like to replace my current interface which is purely text based to one that can accommodate things like variable (or at least multiple) sized fonts, bold/italic/etc. As well as the traditional functions of box, circle, line...

I've seen that there are or seem to be libraries available but if anyoine has experience or direct knowledge that be helpful to know.

Thanks in advance.

Comments

  • Ken PetersonKen Peterson Posts: 806
    edited 2009-06-04 16:44
    thetribster: The Propeller Tool comes with demo programs and several objects, including a graphics object and a demo that goes with it. Try it out!
  • BADHABITBADHABIT Posts: 138
    edited 2009-06-04 16:56
    ALthough it may not be exactly what you are looking for, Rayman has some graphics tools and info on his site that you will find interesting - rayslogic.
  • Mike GreenMike Green Posts: 23,101
    edited 2009-06-04 16:56
    There's a graphics library that's distributed with the Propeller Tool. There's a corresponding demo program that comes with the Propeller Tool. Read the comments in the graphics object (graphics.spin). They're pretty complete in terms of the various routines and their parameters. This library will work with either a TV or VGA display. There's limited memory available for the screen bitmap, so the best you're likely to get with VGA is 512 x 384.

    These libraries are also available from the Propeller Object Exchange (obex.parallax.com).
  • thetribsterthetribster Posts: 11
    edited 2009-06-04 23:20
    Thanks all.

    I've reviewed the various graphics "stuff" available - at least what is in the POE.

    In general the fonts are pretty bad. I'll stick with the text handling as that does accomplish what I need for now.

    Can anyone help with the hex IDs for the various colors? In the tv_text object this is what i've defined:

    palette                 byte    $07,   $04    '0    white / grey
                            byte    $07,   $BB    '1    white / red
                            byte    $BB,   $04    '2      red / grey
                            byte    $01,   $9E    '3    black / yellow
                            byte    $3D,   $3B    '4  lt blue / dark blue
                            byte    $6B,   $6E    '5    black / green
                            byte    $01,   $CE    '6    black / pink
                            byte    $9E,   $04    '7   yellow / grey
    
    



    Short of writing a little looper app is there a list or something somewhere that points these out? I have looked but can't find anything...

    Also, unclear on the palette changing. Is it possible to change palettes for a region of the screen (in text mode)?

    As usual, any help is appreciated.
Sign In or Register to comment.