Skip to content

Commit

Permalink
step towards removing labels in asy_library
Browse files Browse the repository at this point in the history
  • Loading branch information
Harniver committed Feb 11, 2025
1 parent 2af4482 commit 5e34bd5
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ access "../../../../asy_library/pictures/bunny_polychrome.asy" as bunny_polychro
access "../../../../asy_library/pictures/flag.asy" as flag;

int[] rocks = {0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0};
picture[] pics = {scale(3.5)*flat_rock.drawing(0.15, gray), shift(0,1)*scale(2)*rock.drawing(0.15,gray)};

for (int i=0; i<rocks.length; ++i)
if(rocks[i] == 0)
add(shift(4*i, -2.25)*scale(3.5)*flat_rock.drawing(0.15, text = shift(0, -25)*scale(3)*string(i+1), gray));
else
add(shift(4*i, -1.25)*scale(2)*rock.drawing(0.15, text = shift(0, -25)*scale(3)*string(i+1), gray));
for (int i=0; i<rocks.length; ++i) {
add(shift(4*i, -2.25)*pics[rocks[i]]);
label(scale(6)*string(i+1), (4*i,-4.8));
}

add(shift(-4, -0.25)*reflect((2, 1), (2, 0))*bunny_polychrome.drawing(0.85, bunny_polychrome.bunny_col));
add(shift(4*8 - 1, -0.25)*reflect((2, 1), (2, 0))*flag.drawing(0.85));

0 comments on commit 5e34bd5

Please sign in to comment.