Shop OBEX P1 Docs P2 Docs Learn Events
Source for original Demo — Parallax Forums

Source for original Demo

mcstarmcstar Posts: 144
edited 2006-06-11 17:56 in Propeller 1
I'm wondering if the source for the installed demo is available?· It seems to do some really sweet things with graphics and would serve as a nice model for an animated program.·· Plus, I don't really want to write over it if I cannot get it back.
·

Comments

  • Phillip Y.Phillip Y. Posts: 62
    edited 2006-06-11 01:09
  • mcstarmcstar Posts: 144
    edited 2006-06-11 16:08
    Thank you.· BTW, I also found the source in the Propeller Tool's install directory under Examples\library.

    Does anyone know what format to specify a pixel definition for the Graphics pix or pixarc method?· I've been able to deduce that the first two numbers have something to do with the size of the bitmap to draw, but I don't exactly understand how they relate and how color and pixel data is specified.· Here's an example of the defintion....

    pixdef2················ word··························· 'dog
    ······················· byte··· 2,10,0,3
    ······················· word··· %%20000032
    ······················· word··· %%02222222
    ······················· word··· %%02222200
    ······················· word··· %%02000200

    Does the %% mean a double sized byte or someting?

    ·
  • Paul BakerPaul Baker Posts: 6,351
    edited 2006-06-11 16:17
    No %% means its a quarternary (aka double binary) number, which each digit expressed as 0-3.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Life is one giant teacup ride.
  • mcstarmcstar Posts: 144
    edited 2006-06-11 16:35
    So the first word in the pixdef2 example...
    %%20000032 equates to
    2 0 0 0 0 0 0 3 2
    % 0100000000001101 right?
  • NewzedNewzed Posts: 2,503
    edited 2006-06-11 17:40
    In the last line, shouldn't the first two and last two digits be 10 instead of 01?

    Sid

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Sid Weaver
    Do you have a Stamp Tester yet?
    http://hometown.aol.com/newzed/index.html

    ·
  • mcstarmcstar Posts: 144
    edited 2006-06-11 17:56
    I think you're right, my mistake.
Sign In or Register to comment.