Skip to content

Instantly share code, notes, and snippets.

Created June 12, 2017 14:42
Show Gist options
  • Save anonymous/1c1480962f0723f9baaa63e7c8f51683 to your computer and use it in GitHub Desktop.
Save anonymous/1c1480962f0723f9baaa63e7c8f51683 to your computer and use it in GitHub Desktop.
This code produces an error on iOS with AIR 25 + 26 (beta)
// =================================================================================================
//
// Starling Framework
// Copyright Gamua GmbH. All Rights Reserved.
//
// This program is free software. You can redistribute and/or modify it
// in accordance with the terms of the accompanying license agreement.
//
// =================================================================================================
package starling
{
import starling.display.Canvas;
import starling.display.Sprite;
import starling.filters.FragmentFilter;
public class FilterExperiments extends Sprite
{
public function FilterExperiments()
{
var canvas:Canvas = new Canvas();
canvas.beginFill(0xff0000);
canvas.drawEllipse(100, 50, 200, 100);
canvas.endFill();
canvas.x = canvas.y = 100;
addChild(canvas);
canvas.filter = new FragmentFilter();
canvas.filter.antiAliasing = 2;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment