Make value slider works with Point defined by block of code
Bug #1495234 reported by
hilaire
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Dr. Geo |
Won't Fix
|
Wishlist
|
Unassigned |
Bug Description
In Smalltalk programmed sketch, it will be nice to make the slider helper to work with point defined by block:
- slider return a block of code, value of the slider is get by sending the #value message
- point defined by block expect as argument mathItems, it should handle block of code argument as well.
tags: | added: script |
Changed in drgeo: | |
status: | New → Invalid |
Changed in drgeo: | |
status: | Invalid → Won't Fix |
To post a comment you must log in.
It should not be necessary as long as slider are not passed as arguments, and there are not reason to do it.
See example bellow:
|figure r u|
figure:=DrGeoCanvas new.
r := figure float: 0.8 at: 0@ -1 from: 0 to: 4 name: 'r' showValue: true.
u := figure pointOnCurve: (figure segment: 0@0 to: 0@1) at: 0.7.
u round small color: Color blue.
1 to: 1000 do: [:n|
u := figure
point: [:parent| |y |
y := parent point y.
(n / 5) @ r value * y * (1 - y)]
parent: u.
u round small color: Color blue].