Team Spartan Cookies & Milk Forums
  • Issue Tracker
  • Donations
  • Search
  • Member List
  • Help

Register

Team Spartan Cookies & Milk Forums Garry's Mod Starfall v
« Previous 1 2 3 4 5 6 … 18 Next »
Full HSV/HSL/Hex Colour support?
Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Threaded Mode
Full HSV/HSL/Hex Colour support?
08-07-2020, 05:41 PM,
#1
frdhog Offline
Hasn't finished a ship in 2 years
****
Posts: 72
Threads: 31
Joined: Feb 2016
Rainbow  Full HSV/HSL/Hex Colour support?
I noticed that Starfall only has Color.fromHSV and Color.fromHex but no methods to oppose these.
Could we have the GLua functions of HSLToColor, ColorToHSL, ColorToHSV and possibly a ColorToHex function?
These would be greatly appreciated,
frdhog
Website Find
Reply
08-07-2020, 06:48 PM,
#2
Person8880 Offline
gpj.ecafllorT
*******
Posts: 2,407
Threads: 45
Joined: Sep 2013
RE: Full HSV/HSL/Hex Colour support?
Colours already have methods to convert between colour spaces, they just weren't in the SF docs. Use Color:ToHSV() and Color:ToHSL() to convert from RGB (these are now documented).

I'll add hex conversion and HSL to RGB at some point, don't have time to do it today.
Find
Reply
« Next Oldest | Next Newest »


  • View a Printable Version
Forum Jump:


Users browsing this thread: 1 Guest(s)
Contact UsTeam Spartan Cookies & MilkReturn to TopLite (Archive) ModeMark all forums readRSS Syndication

Powered By MyBB, © 2002-2026 MyBB Group.