I'm generating different sizes for an icon (a simple blue 32x32 circle) and inserting them into one resultant icon. The problem is the artifact that's generated. Instead of clean states with just the resized icon, I get this:
Note that the icon itself is 100x100 (100 icon states with sizes 1x1 to 100x100). I don't think those bars should be forming, regardless of how it's cropping.
Numbered Steps to Reproduce Problem:
Rescale an icon and insert them into one icon (this will make the icon's actual size be the maximum size inserted)
Code Snippet (if applicable) to Reproduce Problem:
var circle_icon = generate_icon_sizes('icons.dmi', "body")
var hole_icon = generate_icon_sizes('icons.dmi', "hole")
proc/generate_icon_sizes(file, state)
var icon/base = icon(file, state)
var icon/result = icon(base)
var icon/temp
for(var/n in 1 to 100)
temp = icon(base)
temp.Scale(n, n)
result.Insert(temp, "[n]")
return result
mob/verb/save_icons()
src << ftp(circle_icon, "circle.dmi")
src << ftp(hole_icon, "hole.dmi")
Expected Results:
An icon with 100 states of the same base icon, rescaled.
Actual Results:
See image above.
Does the problem occur:
Every time? Or how often? Every time
In other games? n/a
In other user accounts? Yes
On other computers? Yes
When does the problem NOT occur?
n/a
Did the problem NOT occur in any earlier versions? If so, what was the last version that worked? (Visit http://www.byond.com/download/build to download old versions for testing.)
n/a
Workarounds: