drawing exercise: point (2)
Introduction
In previous file the file was red from the start and you could simply drag it without thinking until it turns green. You can stimulate thinking by introducing a button submit so that point starts blue and the control by dynamic coloring will only be done after clicking on this button.
How to do this?
Start from previous file and make following changes:
- submit:
- Define a number submit = 0.
- Create a button with the script command
SetValue[submit,1]
- Dynamic colors of P: Change the dynamic colors of P as follows
Red:
If(submit ≟ 1 ∧ (P ≠ Sol), 1, 0)
Green:If(submit ≟ 1 ∧ (P == Sol), 1, 0)
Blue:0
- new exercise: add in the script of the button the command
SetValue[submit,0]