-
-
Notifications
You must be signed in to change notification settings - Fork 817
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
avm2: Implement Graphics::drawRoundRectComplex
- Loading branch information
Showing
6 changed files
with
178 additions
and
80 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
// compiled with mxmlc | ||
|
||
package { | ||
import flash.display.MovieClip; | ||
|
||
public class Test extends MovieClip { | ||
public function Test(){ | ||
graphics.beginFill(0xFFCC00); | ||
// top left: normal | ||
graphics.drawRoundRect(10, 10, 100, 100, 70, 30); | ||
// top right: clamping | ||
graphics.drawRoundRect(150, 10, 100, 100, 100, 100); | ||
|
||
// middle left: complex, normal | ||
graphics.drawRoundRectComplex(10, 150, 100, 100, | ||
20, 30, 40, 50); | ||
|
||
// middle right: complex, clamping | ||
graphics.drawRoundRectComplex(150, 150, 100, 100, | ||
80, 60, 50, 30); | ||
|
||
// bottom left: circle | ||
graphics.drawCircle(80, 300, 50); | ||
// bottom right: ellipse | ||
graphics.drawEllipse(150, 300, 100, 50); | ||
graphics.endFill(); | ||
} | ||
} | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file.
Binary file not shown.
Oops, something went wrong.