Post Reply 
Color Values in Python?
04-21-2021, 07:01 AM (This post was last modified: 04-21-2021 07:02 AM by critor.)
Post: #2
RE: Color Values in Python?
The HPPPL rgb() function works perfectly in Python.

Here's a helper function for you :
Code:
import hpprime

def rgb(r,g,b):
  return hpprime.eval("rgb("+str(r)+","+str(g)+","+str(b)+")")
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Color Values in Python? - toml_12953 - 04-21-2021, 12:23 AM
RE: Color Values in Python? - critor - 04-21-2021 07:01 AM
RE: Color Values in Python? - toml_12953 - 04-21-2021, 07:49 AM
RE: Color Values in Python? - critor - 04-21-2021, 09:03 AM
RE: Color Values in Python? - toml_12953 - 04-21-2021, 02:23 PM
RE: Color Values in Python? - toml_12953 - 04-22-2021, 01:26 PM



User(s) browsing this thread: 1 Guest(s)