SMath Studio Forum
»
SMath Studio
»
Samples
»
Colors Use in SMath Graphics
Rank: Advanced Member Groups: Registered
Joined: 23/12/2012(UTC) Posts: 94 Was thanked: 169 time(s) in 132 post(s)
|
Hello Everybody,
During my recent works, I faced the need to handle the use of various colored objects in one graphical SMath representation. Starting with my deep ignorance about colors, especially in connection with SMath, “I dug around” a little. I thought that some of the results of my work can be of a potential interest also for some others. So, I shear in this message as in the appended SMath file, some of my results.
I beg pardon if I offended some wise people by the low level on the the topic.
My main sources are: • SMath Program, SMath Forum and Wiki;
• “www forest”;
• Some books;
• “Color Mania” free program: https://www.blacksunsoftware.com/colormania.html
The main issues that I learned:
• Colors in SMath are available from the main program,as combinations of R;G;B (3 bytes =24 bits) primarily colors;
• XY Plot plugin (UNI) available in SMath allows the use of colors represented on 4 bytes alpha;R;G;B;
• In the ColorMania 14.0 program, there are also available colors codes on 32 bits: * CSS RGBA - #RGBA * Android Transparent - #ARGB Various codes conversions are available In the appended file, I also included some conversions and representations.
• The XY Plot plugin accepts both representations, but the interpreted one seems to be only: #ARGB. (All the 4 bytes are the same structure; the interpretation is only inside the using program.)
• In the HTML language, there are affected and also recognized literal names for colors. Various tables for the color’s names and the hexadecimal correspondent code are abundantly available.
• One of the important findings for me, from this work around is that the various graphical objects included in a drawing are settled in superposed layers. Or the graphical objects colors can always be opaque (as #RGB ones) or even a #ARGB with alpha = 255, or more or less transparent.
The various test tools from the appended file allow experiments in order to decide the right use. In these tools I used some colored rectangles together with colored texts. I introduced them in both orders (first the background rectangle and then the text and vice versa.
I used both backgrounds: #RGBA and #ARGB. Even if now, I understand that the both are obtained by a rotation.
I prefer to introduce the subject in a new post for avoiding polluting the UNI’s valuable post.
Regards, Ioan Colors in SMath-Appl. in XY-Plg-Ioan - P.sm (4,865kb) downloaded 31 time(s).Edited by user 17 August 2024 22:40:08(UTC)
| Reason: Not specified |
Do to others as you would like them to do to you! Knowledge is of no value unless you put it into practice - Chekhov |
1 user thanked ioan92 for this useful post.
|
|
|
SMath Studio Forum
»
SMath Studio
»
Samples
»
Colors Use in SMath Graphics
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.