Logic Machine Forum
Two colors to represent opening and closing through CSS - Printable Version

+- Logic Machine Forum (https://forum.logicmachine.net)
+-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1)
+--- Forum: Visualization (https://forum.logicmachine.net/forumdisplay.php?fid=9)
+--- Thread: Two colors to represent opening and closing through CSS (/showthread.php?tid=1957)



Two colors to represent opening and closing through CSS - newspaper - 09.03.2019

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。


RE: Two colors to represent opening and closing through CSS - Erwin van der Zwart - 09.03.2019

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


RE: Two colors to represent opening and closing through CSS - newspaper - 10.03.2019

(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.


RE: Two colors to represent opening and closing through CSS - Erwin van der Zwart - 10.03.2019

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


RE: Two colors to represent opening and closing through CSS - newspaper - 13.03.2019

(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.