Zum Inhalt springen
Menü
Sie müssen registriert sein, um mit der Community zu interagieren.
Diese Frage wurde gekennzeichnet
3080 Ansichten

I did a report in which I show a rectangle.

I would like to make a repeatIn and print a rectangle in each loop. It seems to be easy, but when I print a rectangle, I have to specify the X and Y positions where I want to print the rectangle. Is there any way to print one close to the next one and change line if necessary?

Like this (supposing |_| is a rectangle):

|_| |_| |_| |_| |_| |_| |_| |_| |_| |_| 

|_| |_| |_| |_|

My code:

<para style="terp_default_8">[[ repeatIn(objects,'o') ]]</para>
<para style="terp_default_8">[[ setLang(o.lang) ]]</para>

<illustration>
    <stroke color="black"/>
    <fill color="green"/>
    <rect x="???" y="???" width="50" height="50" fill="yes" stroke="yes"/>
</illustration>

Avatar
Verwerfen
Verknüpfte Beiträge Antworten Ansichten Aktivität
0
Apr. 18
2712
0
Feb. 18
3624
1
Sept. 15
3658
18
Sept. 15
8848
1
Sept. 15
3309