<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On 23 November 2017 at 18:15, Ralph Versteegen <span dir="ltr"><<a href="mailto:teeemcee@gmail.com" target="_blank">teeemcee@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote"><span class="">On 23 November 2017 at 17:38, James Paige <span dir="ltr"><<a href="mailto:Bob@hamsterrepublic.com" target="_blank">Bob@hamsterrepublic.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">I was playing with them in the slice editor today. I like how they are working.<div><br></div><div>How hard would line thickness be to implement?</div></blockquote><div><br></div></span><div>One benefit of having rewritten drawline is that thick lines could be implemented directly, rather than calling drawline multiple times.</div><div><br></div><div>The problem is still what how to handle the ends. Even drawing filled circles at the ends is difficult, you can't just draw the line with a horizontal or vertical end edge and then draw a circle on top, because you'll have either a gap or a sharp edge sticking out.</div><div>(We could have an option to draw squares, circles, or octagons at the endpoints, squares might be easiest)<br></div><div>Also, I'm concerned that the apparent visual thickness of a line will change as it's rotated if the thickness setting determines as min(horizontal thickness, vertical thickness), because the perpendicular thickness is different. For the same reason, the size of the endpoint circles would change as you rotated the line. So I should we should add a correction.</div></div></div></div></blockquote><div><br></div><div>I should think "I think we should"! <br></div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><br></div><div class="gmail_quote">So all in all, quite difficult.<br></div><div class="gmail_quote"><span class=""><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><br></div><div>I was already thinking about how I might want to use them.</div><div><br></div><div>One thing I want to try is to attach a lineslice somewhere, like, say, a dragon's neck. Then I could attach the head as a child of the line. I could move the head around using the slice  movement commands. Once per tick I would update the lineslice's width/height setting them equal to the x/y of the dragon head slice. That would get me a similar effect to your anchor-to-xy idea.</div></blockquote><div><br></div></span><div>Actually, it was your anchor-to-xy idea :)</div><div><br></div><div>Whether line slices use the xy or the size or an internal data field as the drawline offset has a lots of consequences for how things like slice velocity, collision checking, parenting, filling, and well, everything really, work. So worth thinking more about. If you wanted to move the head with slice velocity commands then there would be one-tick visual delay because the script runs to update the size.</div></div><div class="gmail_quote"><br></div><div class="gmail_quote">As for using a line as a neck, this makes me wonder about lines with tapering thickness... it seems like it would be easy to implement.<br></div><div><div class="h5"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><br></div><div>Anyway. I like the lineslices just fine so far. I think they are on the right track<div><div class="m_4316957614688577704m_-7093658026962570617gmail-h5"><br><br>On Wednesday, November 22, 2017, Ralph Versteegen <<a href="mailto:teeemcee@gmail.com" target="_blank">teeemcee@gmail.com</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div><div><div>We were discussing line slices and negative slice sizes here: <a href="https://www.slimesalad.com/forum/viewtopic.php?p=128795#128795" target="_blank">https://www.slimesalad.com/for<wbr>um/viewtopic.php?p=128795#1287<wbr>95</a><br></div>And in a mailing list thread "Plan for LineSlice".<br><br></div>While I'm fairly comfortable with how line slices work, there's still the possibility to change them completely. I tried some experiments with alternatives, like drawing to x+w-1,y+h-1, but found that giving zero or negative width/height different behaviour leads to a nasty glitch as you gradually change the size of the line slice.</div><div>E.g. imagine that you want to create a dial. What you really want is direct access to drawline(), no crazy schemes for "encoding" and "decoding" the drawline parameters into slice attributes needed.</div><div>But there are still other possibilities, such as discussed before, like making line slices have width/height 0, and draw a line from their anchor point to their x,y position. In other words, making their position instead of their size be the drawline offset.<br></div><div><br></div><div>And anyway, I was being far too hasty in exposing this before we attempt to deal with negative slice sizes.<br></div><div>Notice I also implemented a 'flipped' option which causes it to drawn between the opposite corners, but left it commented out.<br></div><div><br></div>Also, I started implementing line slice commands, <a href="https://bitbucket.org/rbv/ohrrpgce/branch/lineslice" target="_blank">https://bitbucket.org/rbv/ohrr<wbr>pgce/branch/lineslice</a><br><div><div><div class="gmail_extra"><br><div class="gmail_quote">On 23 November 2017 at 16:40,  <span dir="ltr"><<a>subversion@hamsterrepublic.co<wbr>m</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">teeemcee<br>
2017-11-22 19:40:32 -0800 (Wed, 22 Nov 2017)<br>
269<br>
Remove line slices from the editor again. Still available in priviledged mode<br>
<br>
Because I'm not totally comfortable with how negative slice sizes are handled.<br>
<br>
Any existing slice collections will continue to work in-game... but they<br>
will count as forbidden in the editor<br>
---<br>
U   wip/IMPORTANT-nightly.txt<br>
U   wip/sliceedit.bas<br>
U   wip/whatsnew.txt<br>
______________________________<wbr>_________________<br>
Ohrrpgce mailing list<br>
<a>ohrrpgce@lists.motherhamster.o<wbr>rg</a><br>
<a href="http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org" rel="noreferrer" target="_blank">http://lists.motherhamster.org<wbr>/listinfo.cgi/ohrrpgce-motherh<wbr>amster.org</a><br>
</blockquote></div><br></div></div></div></div>
</blockquote></div></div></div>
<br>______________________________<wbr>_________________<br>
Ohrrpgce mailing list<br>
<a href="mailto:ohrrpgce@lists.motherhamster.org" target="_blank">ohrrpgce@lists.motherhamster.o<wbr>rg</a><br>
<a href="http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org" rel="noreferrer" target="_blank">http://lists.motherhamster.org<wbr>/listinfo.cgi/ohrrpgce-motherh<wbr>amster.org</a><br>
<br></blockquote></div><br></div></div></div></div>
</blockquote></div><br></div></div>