var obj/o = new
o.mask_bound_x = 8
o.mask_bound_y = 8
o.mask_bound_width = 24
o.mask_bound_height = 24
The ability to only display a portion or part of a icon, similar to masking?
ID:2687773
May 30 2021, 4:49 am
|
|||||||
| |||||||
var obj/o = new The ability to only display a portion or part of a icon, similar to masking? |
mask_bounds = "8,8 to 24,24"
While still having mask_x,mask_y,mask_width, & mask_height you could even allow the use of animate() so that the mask could be animated |
I agree.
However, I'd propose this be done by expanding the current syntax: filter(type="alpha",x=8,y=8,width=24,height=24) Not specifying an icon would assume that you are doing a rectangle mask. Specifying an icon with a width/height argument would pre-scale the graphic being masked against. |
Bump, this would really help with making things with BYOND.
Being able to animate the bound variables to have something disappear overtime would be epic too. |
I really want a /rectangle object to replace all the *_x/y/width/height variables throughout DM.