Shop OBEX P1 Docs P2 Docs Learn Events
Quick question re: Graphics_Demo — Parallax Forums

Quick question re: Graphics_Demo

softexsoftex Posts: 27
edited 2009-01-31 00:10 in Propeller 1
Hello,

How would I change the background of the Graphics Demo to white?

Thanks,
-Dave

Post Edited (softex) : 1/30/2009 6:53:46 PM GMT

Comments

  • BaggersBaggers Posts: 3,019
    edited 2009-01-30 19:28
    Hi softex
    just after
      repeat i from 0 to 63
        colors[i] := $00001010 * (i+4) & $F + $2B060C02
    [/i]
    



      repeat i from 0 to 63
        colors[i] := $00001010 * (i+4) & $F + $2B060C02
    ' add this line
      colors[noparse][[/noparse]0]:=$2B060C07
    [/i]
    



    hope this helps.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    http://www.propgfx.co.uk/forum/·home of the PropGFX Lite

    ·
  • softexsoftex Posts: 27
    edited 2009-01-30 19:43
    Got it.

    Thanks again ...

    -D
  • BaggersBaggers Posts: 3,019
    edited 2009-01-30 20:08
    no probs softex [noparse]:D[/noparse]

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    http://www.propgfx.co.uk/forum/·home of the PropGFX Lite

    ·
  • Beau SchwabeBeau Schwabe Posts: 6,566
    edited 2009-01-30 20:44
    Here is something that might be more intuitive at a glance that helps me with the TV graphics and color.

        'init colors
        [b]repeat[/b] i [b]from[/b] 0 to 63
          colors := $02_9D_BB_2A
    {
                   Color 3
                   ││ Color 2
                   ││ ││ Color 1
                   ││ ││ ││ Color 0
                   ││ ││ ││ ││
        colors := $02_9D_BB_2A
    
    Examples: (See Palette Demo for [b]other[/b] available colors)
      BB RED
      2A Dark BLUE
      02 BLACK
      5B GREEN
      9D YELLOW
      CD PINK        
      FC PURPLE
      BC ORANGE
      04 GREY
      3C Light BLUE
        
    }
    
    
    

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

    IC Layout Engineer
    Parallax, Inc.
  • softexsoftex Posts: 27
    edited 2009-01-30 22:35
    Better and better ...

    Confirm those values. I had just worked out by trial and error the codes that may appeal to the photographers out there:

    BB Red
    6B Green
    1B Blue
    CB Magenta
    3C Cyan
    8D Yellow

    02 Black
    03 Dark Grey
    04 Middle Grey
    05 Light Grey
    06 White

    Cheers,

    -Dave
  • Beau SchwabeBeau Schwabe Posts: 6,566
    edited 2009-01-31 00:10
    softex,

    Use the Graphics_Palette.spin program found in \Program Files\Parallax Inc\Propeller Tool v1.2.5\Examples\Library to select your desired color... The colors that were posted in the example are what I was playing around with at the time to illustrate how the colors were arranged. Those particular colors happened to match the color of the Poker Chips our team usually plays with. smilewinkgrin.gif

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

    IC Layout Engineer
    Parallax, Inc.
Sign In or Register to comment.