This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

Two colors to represent opening and closing through CSS
#1
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。
Reply
#2
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
Reply
#3
(09.03.2019, 10:24)Erwin van der Zwart Wrote: 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

I think since 1BYTE RGB can use CSS, 1bit can also be used.
Reply
#4
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
Reply
#5
(10.03.2019, 12:14)Erwin van der Zwart Wrote: 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

Thank you very much for your reply and follow your advice.
Reply


Forum Jump: