-
Notifications
You must be signed in to change notification settings - Fork 10
DefRgb
Jim Pivarski edited this page Mar 15, 2015
·
1 revision
- summary Create an RGB hex string from three numbers
- labels Reference,Version1
_(This page applies only to the 1.x branch of SVGFig.)_
Returns a string of the form "#xxyyzz" where xx, yy, and zz are hexadecimal.
- rgb(r, g, b, maximum)*
r, g, b | _*required*_ | values for red, green, and blue channel | ||||
maximum | _default_=1. | the maximum value for each channel |
>>> rgb(0.5, 0.5, 0.5) '#7f7f7f' >>> rgb(50, 50, 50, maximum=100) '#7f7f7f'