Jump to content




Hex Color Values


  • This topic is locked This topic is locked
7 replies to this topic

#1 LuaEclipser

  • Banned
  • 220 posts
  • LocationCleveland, Ohio

Posted 01 April 2013 - 06:29 AM

Basicly, We should be able to use HEX color values to make more custom things. like we could use
term.setBackgroundColor(#cc0000)
i know that in LUA, # gets the length of something, do maybe a special operator for HEX? like this
term.setBackgroundColor("hex", cc0000)
thats just my idea if how it would work. what do you think?

#2 LuaEclipser

  • Banned
  • 220 posts
  • LocationCleveland, Ohio

Posted 01 April 2013 - 06:42 AM

maybe a good idea would be you must load the colors you want?
colors.hexLoad(#CC000, #Adadad, #hex2455)
then use them
term.setBackgroundColor(hexDraw(CC000))
to prevent lag on how much colors it is using, it will just use the ones you load in

#3 Tiin57

    Java Lunatic

  • Members
  • 1,412 posts
  • LocationIndiana, United States

Posted 01 April 2013 - 06:56 AM

Or do it yourself.

#4 LuaEclipser

  • Banned
  • 220 posts
  • LocationCleveland, Ohio

Posted 01 April 2013 - 06:57 AM

dont know Java, only java script :(

#5 Cranium

    Ninja Scripter

  • Moderators
  • 4,031 posts
  • LocationLincoln, Nebraska

Posted 01 April 2013 - 07:08 AM

Not happening.
It's been suggested before that we include hex colors, or a custom color palette. It was always denied because it is simpler, and more fitting within minecraft because there are only 16 'colors/dyes' in vanilla minecraft. This way, it is not overly complicated for anyone else, and that it minimizes issues down the road.
If you want more colors, use CCLights. I believe it uses more than enough for you to enjoy.

#6 Tiin57

    Java Lunatic

  • Members
  • 1,412 posts
  • LocationIndiana, United States

Posted 01 April 2013 - 07:57 AM

View PostLuaEclipser, on 01 April 2013 - 06:57 AM, said:

dont know Java, only java script :(
You can add the current colors (as defined in colors.*) as hex in Lua.

#7 MysticT

    Lua Wizard

  • Members
  • 1,597 posts

Posted 01 April 2013 - 08:42 AM

Well, you can use hex values like this:
local hex = 0x123FD
But you can't use multiple colors at the same time on the terminal, and that's not gonna change.

#8 Lyqyd

    Lua Liquidator

  • Moderators
  • 8,465 posts

Posted 01 April 2013 - 07:43 PM

No.

Previously rejected suggestion; locked.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users