1 Pages (1 items)
Colors Use in SMath Graphics - Somme comments and test tools - Messages
#1 Posted: 8/17/2024 12:45:47 AM
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 MiB) downloaded 63 time(s).
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 MiB) downloaded 63 time(s).
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 users liked this post
Davide Carpi 8/18/2024 1:37:00 AM
1 Pages (1 items)
-
New Posts
-
No New Posts