#scale9Grid

Josh Tynjalajoshtynjala
2025-06-03

OpenFL devlog: scale9Grid

How I recently implemented the scale9Grid property in OpenFL. This feature is sometimes called 9-slice scaling, but Flash doesn't just take a display object as a bitmap and slice it up into 9 pieces. It actually adjusts the placement of points on the vector shapes, which also leads to better looking gradient and bitmap fills. Read on…

joshblog.net/2025/openfl-devlo

Two rectangles with rounded corners, each sliced up into nine numbered regions, with three rows starting at 1 on the top-left and ending at 9 on the bottom-right. The rectangle on the right is larger than the one on the left, and its regions have been scaled up by differing amounts. The corners are the same size as the rectangle on the left. The top and bottom regions have scaled horizontally, and the left and right regions have scaled vertically. The center region has scaled in both directions. Arrows overlay each region to illustrate the direction it has scaled.

Client Info

Server: https://mastodon.social
Version: 2025.07
Repository: https://github.com/cyevgeniy/lmst