enyancc / vscode-ext-color-highlight

Extension adds colored border around css/web colors in the editor
GNU General Public License v3.0
263 stars 83 forks source link

wrong alpha RGBA reading for haxe/haxeflixel language #28

Open 3dformortals opened 7 years ago

3dformortals commented 7 years ago
var color:FlxColor;
color.setRGB(0,204,255,255);
//this blue color R G B A , i need change alpha because sometimes
//i use variable earlier with other color

but extension show me nothing. look like the patterm ignore data if data have 4 incoming params, but take in case of 3 params. And replacing 0 to 0.5(float) destroy the marker placeholder. In python sometimes the color can have float values. 55555

enyancc commented 7 years ago

Hey, thanks for the report!

I didn't even know that it work in python lang :) I'll take a look on this usecase

3dformortals commented 7 years ago

not only in python, the haxe language too can make color.setRGBfloat(0.5,0.8....) The screenshot above demonstrate haxeflixel/haxe code. And the addon "dot-after" style is nice! :), when it work done ;)