Hex Colors in JavaScript

Discussion in 'Javascript/Plugin Support' started by wrigty12, Nov 6, 2015.

  1. wrigty12

    wrigty12 Veteran Veteran

    Messages:
    533
    Likes Received:
    76
    First Language:
    English
    I want to use a Hex Value Color in one of my plugins. How do I get the system to recognize it?
     
    #1
  2. Zalerinian

    Zalerinian Jack of all Errors Veteran

    Messages:
    4,695
    Likes Received:
    922
    Location:
    The Internet.
    First Language:
    English
    Primarily Uses:
    N/A
    If you're making a plugin, bitmap colors are based on hex colors, just make sure to set it as a string.

    If you're talking about something like changing the text color in the message window, you'll need to request a custom plugin to allow that.
     
    #2
  3. wrigty12

    wrigty12 Veteran Veteran

    Messages:
    533
    Likes Received:
    76
    First Language:
    English
    Number(0x660066) I've tried using that as a color for a gauge background, but it only shows up strictly black.
     
    #3
  4. Iavra

    Iavra Veteran Veteran

    Messages:
    1,797
    Likes Received:
    856
    First Language:
    German
    Use "#660066" (as string).
     
    Last edited by a moderator: Nov 6, 2015
    #4
    McKathlin likes this.

Share This Page