A new version of Etoys was added to project Etoys Inbox:
http://source.squeak.org/etoysinbox/Etoys-kfr..98.mcz
==================== Summary ====================
Name: Etoys-kfr..98
Author: kfr.
Time: 6 November 2011, 12:54:02 am
UUID: 2147e370-03b7-c34b-9fa5-3a2438e4c1ff
Ancestors: Etoys-kfr.97
make separate category for graphic filters
=============== Diff against Etoys-kfr.97 ===============
Item was changed:
----- Method: EToyVocabulary>>setCategoryDocumentationStrings (in category 'initialization') -----
setCategoryDocumentationStrings
"Initialize the documentation strings associated with the old etoy categories, in English"
self setCategoryStrings: #(
(basic 'basic' 'a few important things')
(#'book navigation' 'book navigation' 'relating to book, stacks, etc')
(button 'button' 'for thinking of this object as a push-button control')
(collections 'collections' 'for thinking of this object as a collection')
(fog 'fog' '3D fog')
(geometry 'geometry' 'measurements and coordinates')
(#'color & border' 'color & border' 'matters concerning the colors and borders of objects')
(graphics 'graphics' 'for thinking of this object as a picture')
+ (#'graphics filters' 'graphics filters' 'for working of this object as a picture')
(variables 'variables' 'variables added by this object')
(joystick 'joystick' 'the object as a Joystick')
(miscellaneous 'miscellaneous' 'various commands')
(motion 'motion' 'matters relating to moving and turning')
(paintbox 'paintbox' 'the painting palette')
(#'pen trails' 'pen trails' 'relating to trails put down by pens')
(#'pen use' 'pen use' 'use of an object''s "pen"')
(playfield 'playfield' 'the object as a container for other visible objects')
(sampling 'sampling' 'sampling')
(scripting 'scripting' 'commands to start and stop scripts')
(scripts 'scripts' 'methods added by this object')
(slider 'slider' 'functions useful to sliders')
(speaker 'speaker' 'the object as an audio Speaker')
(#'stack navigation' 'stack navigation' 'navigation within a stck')
(storyboard 'storyboard' 'storyboard')
(tests 'tests' 'yes/no tests, to use in "Test" panes of scripts')
(text 'text' 'The object as text')
(vector 'vector' 'The object as a vector')
(viewing 'viewing' 'matters relating to viewing')
) !
Item was changed:
----- Method: SketchMorph class>>additionsToViewerCategories (in category '*eToys-scripting') -----
additionsToViewerCategories
"Answer a list of (<categoryName> <list of category specs>) pairs that characterize the phrases this kind of morph wishes to add to various Viewer categories."
^ #((graphics (
(slot graphic 'The picture currently being worn' Graphic readWrite Player getGraphic Player setGraphic:)
(command wearCostumeOf: 'wear the costume of...' Player)
(slot baseGraphic 'The picture originally painted for this object, but can subsequently be changed via menu or script' Graphic readWrite Player getBaseGraphic Player setBaseGraphic:)
(command restoreBaseGraphic 'Make my picture be the one I remember in my baseGraphic')
(slot rotationStyle 'How the picture should change when the heading is modified' RotationStyle readWrite Player getRotationStyle Player setRotationStyle:)
(command flipLeftRight 'Flip the picture left to right' Player)
(command flipUpDown 'Flip the picture upside down' Player)
+
- (command hueShift: 'Shift the hue of the pictures colors. -180 to 180' Number)
- (command brightnessShift: 'Shift the brightness of the picture -100 to 100' Number)
- (command saturationShift: 'Shift the saturation of the pictures colors -100 to 100' Number)
- (command blur: 'Blur the picture. 1 to 10' Number)
- (command removeFilters 'Remove the picture filters' )
)))
!
Item was added:
+ ----- Method: SketchMorph class>>additionsToViewerCategoryGraphicsFilters (in category '*eToys-scripting') -----
+ additionsToViewerCategoryGraphicsFilters
+ "Answer a list of (<categoryName> <list of category specs>) pairs that characterize the phrases this kind of morph wishes to add to various Viewer categories."
+
+ ^ #(
+ #'graphics filtrers'
+ (
+ (command hueShift: 'Shift the hue of the pictures colors. -180 to 180' Number)
+ (command brightnessShift: 'Shift the brightness of the picture -100 to 100' Number)
+ (command saturationShift: 'Shift the saturation of the pictures colors -100 to 100' Number)
+ (command blur: 'Blur the picture. 1 to 10' Number)
+ (command removeFilters 'Remove the picture filters' )
+ ))
+
+
+ !
Hi,
The squeak list is currently discussing about a spreadsheet morph, and that
just reminded me about how cool is Skeleton actually. So I'm wondering why
it is not in Etoys? I found an old discussion stating that it could be a
nice extension to Etoys but the biggest issue being the slow loading of
external code. I have to agree with that being a problem but I think we
might reconsider just include it in the image as with Dr Geo.
I know we already have a bloated image full of half finished projects but
from what I briefly tested Skeleton seems to work out of the box. And it
doesn't add a *huge* amount of new code. See this simple comparison with
DrGeo:
(PackageInfo named: 'Skeleton') systemCategories size. 2
(PackageInfo named: 'Skeleton') classes size. 38
(PackageInfo named: 'Skeleton') methods size. 654
(PackageInfo named: 'Skeleton') linesOfCode. 4765
(PackageInfo named: 'DrGeoII') systemCategories size. 10
(PackageInfo named: 'DrGeoII') classes size. 214
(PackageInfo named: 'DrGeoII') methods size. 1863
(PackageInfo named: 'DrGeoII') linesOfCode. 17154
Another issue, I guess, is that if Skeleton gets included someone will have
to maintain it, but from what I've seen the latest version dates from 2006
and it still works today. So maybe it won't be that big of an issue.
Anyway, if you want to test it: http://www.languagegame.org:8080/ggame/11.
Cheers,
Richo
A new version of Etoys was added to project Etoys Inbox:
http://source.squeak.org/etoysinbox/Etoys-kfr.97.mcz
==================== Summary ====================
Name: Etoys-kfr.97
Author: kfr
Time: 2 November 2011, 11:02:53 am
UUID: 53b36759-67d4-5b44-b197-b5e23a718d6d
Ancestors: Etoys-kfr.96
Add info about min max values
=============== Diff against Etoys-kfr.96 ===============
Item was changed:
----- Method: SketchMorph class>>additionsToViewerCategories (in category '*eToys-scripting') -----
additionsToViewerCategories
"Answer a list of (<categoryName> <list of category specs>) pairs that characterize the phrases this kind of morph wishes to add to various Viewer categories."
^ #((graphics (
(slot graphic 'The picture currently being worn' Graphic readWrite Player getGraphic Player setGraphic:)
(command wearCostumeOf: 'wear the costume of...' Player)
(slot baseGraphic 'The picture originally painted for this object, but can subsequently be changed via menu or script' Graphic readWrite Player getBaseGraphic Player setBaseGraphic:)
(command restoreBaseGraphic 'Make my picture be the one I remember in my baseGraphic')
(slot rotationStyle 'How the picture should change when the heading is modified' RotationStyle readWrite Player getRotationStyle Player setRotationStyle:)
(command flipLeftRight 'Flip the picture left to right' Player)
(command flipUpDown 'Flip the picture upside down' Player)
+ (command hueShift: 'Shift the hue of the pictures colors. -180 to 180' Number)
+ (command brightnessShift: 'Shift the brightness of the picture -100 to 100' Number)
+ (command saturationShift: 'Shift the saturation of the pictures colors -100 to 100' Number)
+ (command blur: 'Blur the picture. 1 to 10' Number)
- (command hueShift: 'Shift the hue of the pictures colors' Number)
- (command brightnessShift: 'Shift the brightness of the picture' Number)
- (command saturationShift: 'Shift the saturation of the pictures colors' Number)
- (command blur: 'Blur the picture' Number)
(command removeFilters 'Remove the picture filters' )
)))
!
See http://tracker.squeakland.org/browse/SQ-998
We had talked about recreating Parts 2 and 3 of Demon Castle, and while
trying to use Event Theatre to record some things I ran into this bug.
Stephen
A new version of Etoys was added to project Etoys Inbox:
http://source.squeak.org/etoysinbox/Etoys-kfr.95.mcz
==================== Summary ====================
Name: Etoys-kfr.95
Author: kfr
Time: 30 October 2011, 8:13:12 pm
UUID: 990923b1-5ea9-f149-bf8f-beafb95cf536
Ancestors: Etoys-bf.94
stuff for filter
=============== Diff against Etoys-bf.94 ===============
Item was added:
+ ----- Method: Player>>blur: (in category 'sketch filters') -----
+ blur: aNumber
+ self sendMessageToCostume: #filtersAdd: with: { #blur:form: . aNumber}!
Item was added:
+ ----- Method: Player>>brightnessShift: (in category 'sketch filters') -----
+ brightnessShift: aNumber
+ self sendMessageToCostume: #filtersAdd: with: { #brightnessShift:form: . aNumber}!
Item was added:
+ ----- Method: Player>>hueShift: (in category 'sketch filters') -----
+ hueShift: aNumber
+ self sendMessageToCostume: #filtersAdd: with: { #hueShift:form: . aNumber}!
Item was added:
+ ----- Method: Player>>removeFilters (in category 'sketch filters') -----
+ removeFilters
+ self sendMessageToCostume: #removeAllFilters!
Item was added:
+ ----- Method: Player>>saturationShift: (in category 'sketch filters') -----
+ saturationShift: aNumber
+ self sendMessageToCostume: #filtersAdd: with: { #saturationShift:form: . aNumber}!
Item was changed:
----- Method: SketchMorph class>>additionsToViewerCategories (in category '*eToys-scripting') -----
additionsToViewerCategories
"Answer a list of (<categoryName> <list of category specs>) pairs that characterize the phrases this kind of morph wishes to add to various Viewer categories."
^ #((graphics (
(slot graphic 'The picture currently being worn' Graphic readWrite Player getGraphic Player setGraphic:)
(command wearCostumeOf: 'wear the costume of...' Player)
(slot baseGraphic 'The picture originally painted for this object, but can subsequently be changed via menu or script' Graphic readWrite Player getBaseGraphic Player setBaseGraphic:)
(command restoreBaseGraphic 'Make my picture be the one I remember in my baseGraphic')
(slot rotationStyle 'How the picture should change when the heading is modified' RotationStyle readWrite Player getRotationStyle Player setRotationStyle:)
(command flipLeftRight 'Flip the picture left to right' Player)
(command flipUpDown 'Flip the picture upside down' Player)
+ (command hueShift: 'Shift the hue of the pictures colors' Number)
+ (command brightnessShift: 'Shift the brightness of the picture' Number)
+ (command saturationShift: 'Shift the saturation of the pictures colors' Number)
+ (command blur: 'Blur the picture' Number)
+ (command removeFilters 'Remove all picture filters')
)))
!