Difference: 0LASubrWidgetCnvClrToRgb (1 vs. 3)

Revision 32020-05-12 - JeanNeron

Line: 1 to 1
 
META TOPICPARENT name="APPXRuntimeSubroutineAPI"

.WIDGET CNV CLR TO RGB

Line: 29 to 29
 
  • WIDGET COLOR WP BG
<clr_alpha> is the hex color code you want converted (Required). This must 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 if omitted will default to 1 (not transparent). Other values for TT are 0-255 where 0 is fully transparent and 255 is fully opaque.
Changed:
<
<
To convert from decimal format to alpha color codes, see .WIDGET CNV RGB TO CLR
>
>
To convert from decimal format to alpha color codes, see .WIDGET CNV RGB TO CLR
 

Comments:

Line: 38 to 38
 
<--/commentPlugin-->

-- JeanNeron - 2012-02-06 \ No newline at end of file

Added:
>
>
META TOPICMOVED by="JeanNeron" date="1589314923" from="Main.0LASubrWidgetCnvClrToRGB" to="Main.0LASubrWidgetCnvClrToRgb"

Revision 22012-03-29 - PeteBrower

Line: 1 to 1
 
META TOPICPARENT name="APPXRuntimeSubroutineAPI"

.WIDGET CNV CLR TO RGB

Line: 27 to 27
 
  • WIDGET COLOR RO FG
  • WIDGET COLOR RO BG
  • WIDGET COLOR WP BG
Changed:
<
<
<clr_alpha> is the hex color code you want converted (Required). This must 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 if omitted will default to 1 (not transparent).
>
>
<clr_alpha> is the hex color code you want converted (Required). This must 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 if omitted will default to 1 (not transparent). Other values for TT are 0-255 where 0 is fully transparent and 255 is fully opaque.
  To convert from decimal format to alpha color codes, see .WIDGET CNV RGB TO CLR

Revision 12012-02-06 - JeanNeron

Line: 1 to 1
Added:
>
>
META TOPICPARENT name="APPXRuntimeSubroutineAPI"

.WIDGET CNV CLR TO RGB

This subroutine converts an alpha/hex color code to decimal.


Usage:

      PASS         <clr_binary>               FIELD            SHARE? Y
      PASS         <clr_alpha>                FIELD            SHARE? N
      GOSUB    --- .WIDGET CNV CLR TO RGB
      *        Check for errors
      IF       --- .WIDGET CNV CLR TO RGB     NE

Description:

This subroutine converts an alpha/hex color code to decimal. This is useful for converting web or hex color codes (ie, #FFFF0000) to the format required for the --- WIDGET file (255, 255, 0, 0). Both parameters are required, and the subroutine will cancel if they are not received.

<clr_binary> is the color value returned (Required). This must be PASSed with Share "Y" to return the value. 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:

  • WIDGET COLOR EN FG
  • WIDGET COLOR EN BG
  • WIDGET COLOR DB FG
  • WIDGET COLOR DB BG
  • WIDGET COLOR RO FG
  • WIDGET COLOR RO BG
  • WIDGET COLOR WP BG
<clr_alpha> is the hex color code you want converted (Required). This must 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 if omitted will default to 1 (not transparent).

To convert from decimal format to alpha color codes, see .WIDGET CNV RGB TO CLR

Comments:

Read what other users have said about this page or add your own comments.


<--/commentPlugin-->

-- JeanNeron - 2012-02-06

 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback