Skip to content

Instantly share code, notes, and snippets.

View chichilatte's full-sized avatar

Chichi Latté chichilatte

View GitHub Profile
@chichilatte
chichilatte / gist:436f203bb25a90715680
Last active August 29, 2015 14:23
Converting Starling texture to Bitmap
/** Note: Only tested with Starling 1.5.1 */
import flash.display.Bitmap;
import flash.display.BitmapData;
import starling.core.RenderSupport;
import starling.core.Starling;
import starling.display.*;
import flash.geom.Rectangle;
// 'sprite' is a Starling sprite you want to grab the bitmap from