-
-
Save anonymous/1c1480962f0723f9baaa63e7c8f51683 to your computer and use it in GitHub Desktop.
This code produces an error on iOS with AIR 25 + 26 (beta)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ================================================================================================= | |
// | |
// 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