Skip to content

Conversation

@Geokureli
Copy link
Member

@Geokureli Geokureli commented Jan 2, 2026

Fixes #3541

  • FlxStringUtil
    • Optimize arrayToCSV and therefore imageToCSV and bitmapToCSV
    • Detects browsers manipulating getPixel result for safety features and counteracts this in bitmapTo by getting the nearest mapped color
    • Add bitmap32ToCSVand image32ToCSV which does not ignore alpha
  • FlxTilemap: Add overloads for loadMapFromGraphic deprecate the one that allows both invert and colorMap args
  • FlxArrayaUtil: Add scale methods with overloads for arrays and 2d arrays
  • FlxColor: Add getDistance and nearest methods for comparing differences in colors

@Geokureli Geokureli added this to the 6.2.0 milestone Jan 6, 2026
@Geokureli Geokureli changed the title Optimize bitmapToCSV and prevent errors when farbling FlxStringUtil: Optimize bitmapToCSV and prevent errors when farbling Jan 8, 2026
@Geokureli Geokureli changed the title FlxStringUtil: Optimize bitmapToCSV and prevent errors when farbling FlxStringUtil: Optimize and improve bitmapToCSV and prevent errors when farbling Jan 8, 2026
@Geokureli Geokureli added Improvement Target-HTML5 Performance/Memory Assets Pertains to using and including assets labels Jan 8, 2026
@Geokureli Geokureli merged commit c70a33e into HaxeFlixel:dev Jan 8, 2026
10 checks passed
@Geokureli Geokureli deleted the bitmap-to-csv branch January 8, 2026 15:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

FlxStringUtil: bitmapToCSV fails on brave when shields are up

1 participant