Skip to content

Commit

Permalink
commit for issue #9
Browse files Browse the repository at this point in the history
  • Loading branch information
Beeblerox committed Jul 6, 2012
1 parent 741ea6d commit b4d44ae
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 3 deletions.
9 changes: 8 additions & 1 deletion AS3-Flixel/src/pxBitmapFont/PxBitmapFont.as
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,14 @@ package pxBitmapFont

_matrix.identity();
_matrix.scale(pScale, pScale);
_colorTransform.color = pColor;

var colorMultiplier:Number = 0.00392;
_colorTransform.redOffset = 0;
_colorTransform.greenOffset = 0;
_colorTransform.blueOffset = 0;
_colorTransform.redMultiplier = (pColor >> 16) * colorMultiplier;
_colorTransform.greenMultiplier = (pColor >> 8 & 0xff) * colorMultiplier;
_colorTransform.blueMultiplier = (pColor & 0xff) * colorMultiplier;

var glyph:BitmapData;
var preparedGlyph:BitmapData;
Expand Down
9 changes: 8 additions & 1 deletion AS3-blit/src/pxBitmapFont/PxBitmapFont.as
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,14 @@ package pxBitmapFont

_matrix.identity();
_matrix.scale(pScale, pScale);
_colorTransform.color = pColor;

var colorMultiplier:Number = 0.00392;
_colorTransform.redOffset = 0;
_colorTransform.greenOffset = 0;
_colorTransform.blueOffset = 0;
_colorTransform.redMultiplier = (pColor >> 16) * colorMultiplier;
_colorTransform.greenMultiplier = (pColor >> 8 & 0xff) * colorMultiplier;
_colorTransform.blueMultiplier = (pColor & 0xff) * colorMultiplier;

var glyph:BitmapData;
var preparedGlyph:BitmapData;
Expand Down
9 changes: 8 additions & 1 deletion Haxe/src/pxBitmapFont/PxBitmapFont.hx
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,14 @@ class PxBitmapFont

_matrix.identity();
_matrix.scale(pScale, pScale);
_colorTransform.color = pColor;

var colorMultiplier:Float = 0.00392;
_colorTransform.redOffset = 0;
_colorTransform.greenOffset = 0;
_colorTransform.blueOffset = 0;
_colorTransform.redMultiplier = (pColor >> 16) * colorMultiplier;
_colorTransform.greenMultiplier = (pColor >> 8 & 0xff) * colorMultiplier;
_colorTransform.blueMultiplier = (pColor & 0xff) * colorMultiplier;

var glyph:BitmapData;
var preparedGlyph:BitmapData;
Expand Down

0 comments on commit b4d44ae

Please sign in to comment.