ID:1419190
 
| - Veritcal
_ - Horizontal


How would you animate | | and then _ - so that it creates a square? I'm talking about thin lines of about 1 or 2 pixels. Without using an icon. If an icon has to be used, then a 1 pixel icon at 1,1 would be used.

Along with that, what would be the most efficient way of going about shading in this square?

P.S. I can't find "animate proc" in the reference. The online one.
Without using an icon, you'd generate an icon (using DrawBox() probably)... The best way I can think of is making a fully expanded square and then Scale()'ing it down to nothing. Then scale it back up to make it expand.

That's just my half-assed way though =P
There was a DrawBox proc?! I'm so behind. q_q... This is for my attempt at making a 3D world. All it'll do is rotate a box and if it works, BYOND will change forever. ._. Everyone will worship me. >=) Okay, well, I'll let you know if this is what I'm looking for tomorrow... 4:10 AM and all.. Y'know.. Sleep.
I don't think it's actually possible to do anything graphical without at least an icon with an empty icon state.

What I do for quick test projects now is just use one 32x32 icon with a white square and a white circle. Using atom.transform, you can make the square have any width or height you want, and at any angle. You can pretty much have a line of any length and width from any two points. Using atom.color, you can color it, and with an overlay, you can shade it.

Don't confuse animate() for atom.transform, by the way. v500 hasn't been out for very long and I've already seen people mix them up or have plenty of misconceptions about every feature.
Will transform draw the line instead of moving the icon from one position to the other?

Edit: I recently read the reference guide again. Turns out if I want to draw the icon as a line, I have to Scale() it. However, I need everything to be done in pixels. This may not be what I'm looking for. Animate still does the job of moving things in pixels easy. Or is this possible with transform as well?
In response to Xirre
transform takes a matrix. The /matrix datum supports translation (movement), scaling, rotation, and shearing, all without needing to use any /icon objects or /icon procs. These appearance effects are done client-side.

Again, animate() has nothing to do with appearance, as all it does is set variables (including transform) over a certain amount of time.
Agh. Guess transform may very well be what I need.