r3wp [groups: 83 posts: 189283]
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

World: r3wp

[View] discuss view related issues

Gabriele
2-May-2006
[4974]
select is an action, so a method to the datatype. in is a native.
Anton
2-May-2006
[4975]
What I mean is, every time IN is used, it would then have to check 
if the argument is an image, right ?
Gabriele
2-May-2006
[4976]
yes, and it would behave like a completely different function in 
that case, which is bad imho
Anton
2-May-2006
[4977]
Ok, so we agree on IN.
Gabriele
2-May-2006
[4978]
select instead is already dispatched because it's an action, and 
it would not change its behaviour (returns a value)
Chris
2-May-2006
[4979]
A: From a tech pov, yes.
Anton
2-May-2006
[4980]
I can't think of an example where select is dispatched differently...
Gabriele
2-May-2006
[4981x2]
actually, select currently doesn't need being an action, afaik. as 
it is basically second find
so maybe it was made an action to allow things like this in the future 
:)
Anton
2-May-2006
[4983]
Ah ok.. yes.. mmm...
Gabriele
2-May-2006
[4984]
(though, there is an action that already does this: PATH. but it's 
not exposed.)
Anton
2-May-2006
[4985]
Ah yes, maybe that could be used.
Gabriele
2-May-2006
[4986]
i'd guess path is going to stay this way for speed (internal only), 
but select could be a good interface to it.
Anton
2-May-2006
[4987]
I guess so. :)
Geomol
2-May-2006
[4988x3]
>> copy/part skip mold get first [help.gif] 13 5
== "48x48"
(Only works for sizes taking up 5 chars, but it's a start.)
But why the heck do you wanna do it? help.gif/size is so easy.
Maybe size? could be changed to work on images too!?
Henrik
2-May-2006
[4991x2]
I don't know the name of the image
you'll see soon where it's used :-)
Geomol
2-May-2006
[4993]
SIZE? is a function using INFO?

INFO? is a funciton working on ports. It's easy to do the same for 
images.
image-size?: func [img] [img/size]
Henrik
2-May-2006
[4994]
anyway, problem was solved by gabriele's function. thanks, by the 
way
Geomol
2-May-2006
[4995]
>> image-size? get first [help.gif]
== 48x48
Henrik
2-May-2006
[4996]
precisely what I'm using now
Geomol
2-May-2006
[4997x2]
oki
ops, I skipped Gabriele's post. There it was! :)
Henrik
2-May-2006
[4999x2]
I'm not sure this is ready for announcement as it's still a prototype, 
so I'll put it here: http://www.hmkdesign.dk/rebol/toolbar/toolbar-demo.r
it's a toolbar with a simple dialect to alter the sequence of the 
buttons. the space between the buttons is flexible.
MichaelB
3-May-2006
[5001]
I like it and you thought also about the text to the buttons.
Anton
3-May-2006
[5002]
Yes, looks good.
ChristianE
3-May-2006
[5003]
It even resizes correctly! This will give apps a decent professional 
look.
Henrik
3-May-2006
[5004]
Feel free to use it. I haven't made docs yet and I plan to rewrite 
it (but not change the functionality). The source to toolbar-demo.r 
should be fairly explanatory.
JaimeVargas
3-May-2006
[5005]
Nice, I seethe  OSX influence ;-)
Henrik
3-May-2006
[5006]
not influence, blatant rip-off (cough!) :-)
james_nak
3-May-2006
[5007]
Quite Cool.
Henrik
12-May-2006
[5008]
I got bored and played around with gradients: http://www.hmkdesign.dk/rebol/bored.r
MichaelB
12-May-2006
[5009]
looks cool :-)
Henrik
12-May-2006
[5010]
what framerate do you get?
BrianW
12-May-2006
[5011]
hypnotically slow, but not a slideshow
Henrik
12-May-2006
[5012]
funny, my mac and the PC gives about the same framerate. the rate 
is set to 50, but I get about 5-7 fps on both machines.
BrianW
12-May-2006
[5013]
This is on Ubuntu
Henrik
12-May-2006
[5014]
I expected the mac to be about half as fast.
PhilB
12-May-2006
[5015]
Looks like a jet engine fan ...... on a P3 733 I get about 3 frames/sec
[unknown: 9]
12-May-2006
[5016x3]
How do you know the frame rate on a moving pattern?  It could be 
187 frames per second, and moving so fast that it appears to be moving 
slow, or even backwards : )
That aside, I get about 3 frames/sec on a 2Ghz system.
One can always change "r: r + 1 // 360" to "r: r + 10 // 360"

Oh...and very nice Henrik.
Henrik
12-May-2006
[5019x2]
it's a haphazard set of tuples, blocks and "oh hey that looks funny, 
I'll put that in" moments. presto, jet engine purely with gradients.
I think it's pretty good as a composite engine, although a bit slow 
way to draw things.
JaimeVargas
12-May-2006
[5021]
Henrick, you should get bored more often ;-)
Henrik
12-May-2006
[5022]
:-)
Anton
12-May-2006
[5023]
You can speed it up a little bit by doing this:
view/new/title center-face main: make-face/spec 'box [
  size: 400x400 
  rate: 50 feel: make feel [