Hiding an Image Until a Condition is Met

I’d like to hide an image (e.g. a solution) until a condition has been met (e.g. student has attempted the question). Any suggestions?

Toss the image in a graph. It usually defaults to the center at the origin, so change it to (0,0{C=1}). This means it will only appear when the C variable is equal to 1.

Then in the graph, create a number sink based on the correct answer. Something like this would work, as an example:

number("C"): when input.submitted and input.numericValue=8 1 otherwise 0

Thanks. Getting there! Great, the image disappears until a condition is met but:

  1. Can I get rid of the graph background so that it looks like an image?
  2. The image is currently much smaller than it would be in an image screen. Can I fix that?

…sorry, now see how to get rid of the background!

When you open the graph, click on the wrench icon on the right side to turn on/off the grid and axes. Two ways to adjust the image:

  1. In the graphing calculator, you can change the width and height of the image within the left panel.
  2. In the graph gear, adjust the bounds using CL. This will only show -5 to 5 in both the x and y axis.
bounds: makeBounds(-5,5,-5,5)

Thanks, we are there now! I have a computing background but only started with CL last week so still learning.