flash on 2010-9-26
♥0 |
Line 22 |
Modified 2010-09-26 10:14:17 |
MIT License
archived:2017-03-30 08:19:59
ActionScript3 source code
/**
* Copyright shmdmoto ( http://wonderfl.net/user/shmdmoto )
* MIT License ( http://www.opensource.org/licenses/mit-license.php )
* Downloaded from: http://wonderfl.net/c/uMrJ
*/
package
{
import frocessing.display.F5MovieClip2D;
import frocessing.text.PFont;
/**
* wonderfl + Frocessing でのPFontを使った文字列表示
*/
public class FrocessingFontSample extends F5MovieClip2D
{
public function FrocessingFontSample()
{
super();
}
public var font:PFont;
public function setup() : void {
font = loadFont("http://homepage.mac.com/tmotoike/Serif-48.vlw");
}
public function draw() : void {
fill(0,0,0);
rect(200,200,font.size*10,font.size*10);
textFont(font,48);
text("test",100,100);
}
}
}