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
/** 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 |
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
import {ReactComponent as PencilIcon} from '../assets/icons/pencil.svg' | |
export default function EditButton(onClick:() => void) { | |
return <button onClick={onClick}> | |
<PencilIcon width="12" /> | |
</button> | |
} |