Posts: 8
Threads: 2
Joined: Aug 2017
Reputation:
0
How to turn on and off two values corresponding to the two color effects inside the CSS。
Two colors to represent opening and closing through CSS。
Posts: 1764
Threads: 6
Joined: Jul 2015
Reputation:
117
Hi,
Why do you want to make it this complex?
Just create a png image of your strip in photoshop or any other graphical software and create a version in off-state and on-state and use these 2 images in your visu object.
If you needed a rgb strip then the more complex way with custom js is needed..
BR,
Erwin
Posts: 1764
Threads: 6
Joined: Jul 2015
Reputation:
117
10.03.2019, 12:14
(This post was last modified: 10.03.2019, 12:16 by Erwin van der Zwart.)
Hi,
I don’t fully get your answer, there is normally no need to use css, you can attach images to a object value, this can be boolean so 2 state images, or integer that can hold a lot of images on a certain object value. Here you never need custom css.
When having 3 byte RGB you might need a object color in a strip and to do this particular type it’s best to use css. Otherwise you need 16.7 milion images for the different colors (:
So in your case with binary object you should use .png images to do the task.
BR,
Erwin