Commit a10ef560 authored by wildfirecode13's avatar wildfirecode13

u

parent a3434f1a
export const createMask = (w, h,r, p) => { export const createMask = (w, h,r, p,color?,alpha?) => {
const m = new FYGE.Shape(); const m = new FYGE.Shape();
m.beginFill(1, 1); m.beginFill(color||1, alpha||1);
m.drawRoundedRect(0, 0, w, h,r,r,r,r); m.drawRoundedRect(0, 0, w, h,r,r,r,r);
m.endFill(); m.endFill();
p && p.addChild(m); p && p.addChild(m);
m.width=w;
m.height=h;
return m return m
} }
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment