Shop OBEX P1 Docs P2 Docs Learn Events
graphics — Parallax Forums

graphics

letontonletonton Posts: 9
edited 2009-05-09 15:24 in Propeller 1
hello...

i'd like a very basic plot routine like this :

plot ( x, y, color)
where color is the pixel color value in a useful RGB form,

and maybe

line(source[noparse][[/noparse]x1.y1], destination[noparse][[/noparse]x2.y2],color)


thank you for help !

Comments

  • Chris MicroChris Micro Posts: 160
    edited 2009-05-09 09:27
    Thats what I need to. There are some links in this post
    http://forums.parallax.com/forums/default.aspx?f=25&m=348677&g=348771
  • Beau SchwabeBeau Schwabe Posts: 6,568
    edited 2009-05-09 15:24
    There is a 'graphics.spin' object that already does this....

    color(c)
    plot(x, y)
    line(x, y)

    In order to do lines, you need to use the plot command first followed by the line command.

    This object originally was designed to work with the TV, but it will also work with VGA·in limited portions of the screen.

    There is also a 2 color version that will work with a VGA in limited resolution.· It uses·similar commands...

    http://forums.parallax.com/showthread.php?p=606957

    pointcolor(pc)
    plot(x,y)
    line (px,py,dx,dy)

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Beau Schwabe

    IC Layout Engineer
    Parallax, Inc.

    Post Edited (Beau Schwabe (Parallax)) : 5/9/2009 3:29:17 PM GMT
Sign In or Register to comment.