Nothing Rhymes with Orange

27 views
Skip to first unread message

Louis King

unread,
Jun 22, 2025, 5:10:24 PMJun 22
to VPython-users
All, Nor can I find a good RGB to make orange!
I am using VPython to build the graphics for a puzzle simulation with 8 numbered train cars. Thinking it would be "logical" to use the IEC color codes, I have not been able to find a RGB combination  for orange that doesn't look like a bad brown, or worse!

Any suggestions would be helpful.

Currently I am using:
# IEC color code: 0-Black, 1-Brown, 2-Red, 3-Orange,
# 4-Yellow, 5-Green, 6-Blue, 7-Violet,
# 8-Gray, 9-white
self._color = [vec(0, 0, 0), vec(0.72, 0.42, 0), vec(1, 0, 0), vec(1, 0.572, 0.074),
vec(1, 1, 0), vec(0, 1, 0), vec(0, 0, 1), vec(0.93, 0.51, 0.93),
vec(0.5, 0.5, 0.5), vec(1, 1, 1)]

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             

Louis King

unread,
Jun 22, 2025, 5:20:43 PMJun 22
to VPython-users
All, Just to be sure,  
  • color.orange is defined as vec(1,0.6,0) looks like light brown

Tyson Sommer

unread,
Jun 22, 2025, 6:40:29 PMJun 22
to VPython-users
I'm not an expert on IEC colors or vPython, but I know in Photoshop, orange easily becomes brown by dropping the luminance. Turn up the equivalence of that. Brown is essentially dark orange.

Tyson Sommer

unread,
Jun 22, 2025, 6:43:10 PMJun 22
to VPython-users
And if it still looks brown, it needs more yellow and/or red. Saturation is also a factor. 

Not sure if any of this will be immediately helpful, but it might put you in a right direction.

Tyson Sommer

unread,
Jun 22, 2025, 6:47:34 PMJun 22
to VPython-users
I do know vPython also lets you set your own RGB values. If you google "rgb color picker," Google has one built in that you can use to get the RGB values of any color. Use the slider to dial in the hue and the rectangle above it on the right side to dial in the tone, shade, etc. Then use those RGB values in vPython.

Bruce Sherwood

unread,
Jun 22, 2025, 7:02:11 PMJun 22
to VPython-users

Kevin Karplus

unread,
Jun 23, 2025, 12:31:54 PMJun 23
to vpytho...@googlegroups.com
Standard orange is (255,165,0)  which is about (1.0, 0.65, 0).  The problem is not with the color code, but with your monitor, which is set too dim.  Dim orange is brown.

Professor Emeritus, UC, Santa Cruz
Affiliations for identification only.




--
You received this message because you are subscribed to the Google Groups "VPython-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vpython-user...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/vpython-users/fb1fe207-d2c7-4fdc-bf8c-1c4a3a51b872n%40googlegroups.com.

Louis King

unread,
Jun 23, 2025, 6:40:15 PMJun 23
to VPython-users
Thanks for all the additional references.  Bruce I had not found  https://www.glowscript.org/#/user/GlowScriptDemos/folder/Examples/program/Color-RGB-HSV-VPython 
 
That demo did help eliminate several sources of the problem. By running the glowscript demo in one copy of my browser, and my script using VPython in a second copy of my browser, the colors rendered can be compared. Using rgb vec(1, 0.6, 0) in both and adjusting the two browsers so that the two "orange" blocks are side-by-side, the VPython color is noticeable "muddier"/browner/dimmer than the glowscript version. Need to play with emissive of orange objects, canvas and lighting variables to see if I can get a better color.

Mike Reed

unread,
Jun 24, 2025, 1:27:58 AMJun 24
to vpytho...@googlegroups.com
Hi Louis,
If it helps, I can confirm that (1,0.6,0) looks very orange on my monitor.  My monitor has been calibrated, so if you are not seeing orange it is probably an issue with your screen.  If you use color.orange you can be reasonably confident that most other people will see orange, even if you don't. 

Mike.

--
You received this message because you are subscribed to the Google Groups "VPython-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vpython-user...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages