Difference between pages "ColorAtPointThruNurb" and "Color to RGB"
From scripting
(Difference between pages)
(Created page with " global proc vector colorAtPointThruNurb(string $ObjName, float $UVal, float $VVal) { //Author Nick Pisca 0001d 2009 string $TRel[] = `listRelatives $ObjName`; string $TCon...") |
(Created page with " Function Color_to_RGB(Color As Long) As Variant Dim CurRGB() As Integer ReDim CurRGB(2) CurRGB(0) = Color Mod 256 CurRGB(1) = (Color \ 256) Mod 256 CurRGB(2) = (Co...") |
||
Line 1: | Line 1: | ||
− | + | Function Color_to_RGB(Color As Long) As Variant | |
− | + | Dim CurRGB() As Integer | |
− | + | ReDim CurRGB(2) | |
− | + | CurRGB(0) = Color Mod 256 | |
− | + | CurRGB(1) = (Color \ 256) Mod 256 | |
− | + | CurRGB(2) = (Color \ 256 \ 256) Mod 256 | |
− | + | Color_to_RGB = CurRGB | |
− | + | End Function | |
− | |||
− | |||
− | + | [[Category:CATIA DP VB]] | |
− | [[Category: |
Latest revision as of 05:16, 22 April 2017
Function Color_to_RGB(Color As Long) As Variant Dim CurRGB() As Integer ReDim CurRGB(2) CurRGB(0) = Color Mod 256 CurRGB(1) = (Color \ 256) Mod 256 CurRGB(2) = (Color \ 256 \ 256) Mod 256 Color_to_RGB = CurRGB End Function