Line: 1 to 1 | ||||||||
---|---|---|---|---|---|---|---|---|
.WIDGET CNV RGB TO CLR | ||||||||
Line: 30 to 30 | ||||||||
| ||||||||
Changed: | ||||||||
< < | To convert from alpha/hex format to decimal, see .WIDGET CNV CLR TO RGB | |||||||
> > | To convert from alpha/hex format to decimal, see .WIDGET CNV CLR TO RGB | |||||||
Comments: | ||||||||
Line: 39 to 39 | ||||||||
-- JeanNeron - 2012-02-06 \ No newline at end of file | ||||||||
Added: | ||||||||
> > |
|
Line: 1 to 1 | ||||||||
---|---|---|---|---|---|---|---|---|
.WIDGET CNV RGB TO CLR | ||||||||
Line: 17 to 17 | ||||||||
This subroutine converts a decimal color code to alpha/hex. This is useful for converting colors in the --- WIDGET file (255, 255, 0, 0) format to web or hex color codes (ie, #FFFF0000). Both parameters are required, and the subroutine will cancel if they are not received. | ||||||||
Changed: | ||||||||
< < | <clr_alpha> is the hex color code returned (Required).<clr_binary> is the color value returned (Required). This must be PASSed with Share "Y" to return the value. This will be in the format '#RRGGBBTT' or '#RRGGBB' where RR is the hex value for Red, GG is the hex value for Green, BB is the hex value for Blue and TT is the transparency. The transparency is optional, and will be blank if zero or one in <clr_binary>. | |||||||
> > | <clr_alpha> is the hex color code returned (Required). This must be PASSed with Share "Y" to return the value. This will be in the format '#RRGGBBTT' or '#RRGGBB' where RR is the hex value for Red, GG is the hex value for Green, BB is the hex value for Blue and TT is the transparency. The transparency is optional, and will be blank if zero or one in <clr_binary>. | |||||||
<clr_binary> is the color value to be converted (Required). This should be a Group Header field, where the group consists of 4 numeric fields, 9(3), binary format. This corresponds to the layout of the various color fields in the --- WIDGET file, so you may use them directly. The fields are: |
Line: 1 to 1 | ||||||||
---|---|---|---|---|---|---|---|---|
Added: | ||||||||
> > |
.WIDGET CNV RGB TO CLRThis subroutine converts a decimal color code to alpha/hex.Usage:PASS <clr_alpha> FIELD SHARE? Y PASS <clr_binary> FIELD SHARE? N GOSUB --- .WIDGET CNV RGB TO CLR * Check for errors IF --- .WIDGET CNV RGB TO CLR NE Description:This subroutine converts a decimal color code to alpha/hex. This is useful for converting colors in the --- WIDGET file (255, 255, 0, 0) format to web or hex color codes (ie, #FFFF0000). Both parameters are required, and the subroutine will cancel if they are not received. <clr_alpha> is the hex color code returned (Required).<clr_binary> is the color value returned (Required). This must be PASSed with Share "Y" to return the value. This will be in the format '#RRGGBBTT' or '#RRGGBB' where RR is the hex value for Red, GG is the hex value for Green, BB is the hex value for Blue and TT is the transparency. The transparency is optional, and will be blank if zero or one in <clr_binary>. <clr_binary> is the color value to be converted (Required). This should be a Group Header field, where the group consists of 4 numeric fields, 9(3), binary format. This corresponds to the layout of the various color fields in the --- WIDGET file, so you may use them directly. The fields are:
Comments:Read what other users have said about this page or add your own comments.-- JeanNeron - 2012-02-06 |