brown/purple colours

  • Kurgusov

    Kurgusov - 2007-08-12

    Hi MrMcBrine,
    This forums very quiet and soon Ill have all the posts.

    I am trying to get the colours brown and purple on the screen but all my uneducated attempts have gone awry.

    Do I need to change a setting or redefine another color?

    Any help would be great,though Ill keep pluggin away at it.

    (using pdCurses 3.2 on xp)

    • William McBrine

      William McBrine - 2007-08-12

      Yes, you'd have to redefine a color via init_color() if none of the existing ones is satisfactory.

      "Brown" is traditionally assigned to dark yellow, and is made by upping the red quotient (where a pure yellow would have equal parts red and green). "Purple" is some combination of red and blue, which is what you currently have in COLOR_MAGENTA; if you want some other shade, you can adjust the red and blue components as desired.


    • Kurgusov

      Kurgusov - 2007-08-12

      yeah that helps,
      thanks,your a legend.


Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

No, thanks