Colors
Hi,
I was working with Vizard and I tried to change the color of some objects throught the script but I am not sure how to name some colors. Is there any link where I could find the way Vizard labels hues? Thanks, Vinicius |
Hi,
Vizard uses RGB to specify color values. Each component is specified with a value between 0 and 1. Here is a link to the Wikipedia page on RGB: http://en.wikipedia.org/wiki/RGB |
Thanks, I've figured that out already. My problem is that sometimes colors have names like SKYBLUE and I don't know how exactly the other RGB colors are called.
|
Hi,
Vizard defines some common color values. Here are the names and values: Code:
WHITE = (1,1,1) |
Thanks!
Vinicius |
Hi, I have a further question. How do I map a color in Vizard, like (0.5,0.5,0.5) gray, to a color represented by 8-bit? Is it (128,128,128) in the example?
|
Yes, the following code will apply that color to a box:
Code:
import viz |
That's very helpful. Thanks!
|
All times are GMT -7. The time now is 10:26 AM. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC