Write a different, equivalent line of code (one that produces an identical image) that applies the additive inverse. For instance, rather than adding a positive value, you might subtract its opposite. When you’re done, test both lines of code to see if the images are identical. We’ve done the first one for you.

Provided Code Your Code

1

text​(​"hello", 50 + -15, "green"​)

text​(​"hello", 50 - 15, "green"​)

2

circle​(​26 - 6, "solid", "red"​)

circle​(​ , "solid", "red"​)

3

square​(​24 + 36, "outline", "olive"​)

square​(​ , "outline", "olive"​)

4

rotate​(​270, rectangle​(​18 + 2, 50 - 30, "solid", "blue"​)​)

rotate​(​270, rectangle​(​ ,  , "solid", "blue"​)​)

5

rotate​(​200 + -50, isosceles-triangle​(​100, 20 - -5, "solid", "black"​)​)

rotate​(​ , isosceles-triangle​(​100,  , "solid", "black"​)​)

6

ellipse​(​55 + 5, 100 - 80, "outline", "red"​)

ellipse​(​ ,  , "outline", "red"​)

These materials were developed partly through support of the National Science Foundation, (awards 1042210, 1535276, 1648684, 1738598, 2031479, and 1501927). CCbadge Bootstrap by the Bootstrap Community is licensed under a Creative Commons 4.0 Unported License. This license does not grant permission to run training or professional development. Offering training or professional development with materials substantially derived from Bootstrap must be approved in writing by a Bootstrap Director. Permissions beyond the scope of this license, such as to run training, may be available by contacting contact@BootstrapWorld.org.