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

World: r3wp

[AGG] to discus new Rebol/View with AGG

Anton
8-Sep-2005
[499]
Cool :)
Geomol
9-Sep-2005
[500]
I think, there's a bug with colour keying in DRAW, when doing an 
IMAGE. Grey-tones seems to work, and also the green colour 0.136.0, 
but most other colours don't work!?
Cyphre
13-Sep-2005
[501]
The colour keying bug is known issue and was fixed for the next release. 
Anyway thanks for reporting ;)
Pekr
13-Sep-2005
[502]
:-)
Cyphre
13-Sep-2005
[503]
I also read someone reporting problems with different characters 
rendered using AGG. This should be also fixed in the next release.
Pekr
13-Sep-2005
[504]
ah, I just wanted to ask! Thanks ...
shadwolf
16-Sep-2005
[505x4]
cyphre :

here you have a tiny example of gradient representation taken from 
the webpage http://www.w3.org/TR/SVG/pservers.htmlwitch explain 
the gradient format for SVG 
Simple linear gradient commented by me  ^^
<g>
    <defs>
# LinearGradient definitions 
        <linearGradient id="MyGradient">
#first color using 5% of the space to color
            <stop offset="5%" stop-color="#F60" />
# second color using 95% of the space to color
            <stop offset="95%" stop-color="#FF6" />
     </linearGradient>
  </defs>

# HERE you have the rect definition using the LinearGradient witch 
id is MyGradient

   <rect fill="url(#MyGradient)" stroke="black" stroke-width="5" x="100" 
   y="100"  width="600" height="200" />  
</g>    

So as you can see the color pourcentages
Example for RadialGradient taken  from the same when page 
<g>
<defs>

         <radialGradient id="MyGradient" gradientUnits="userSpaceOnUse"
cx="400" fy="200">
       <stop offset="0%" stop-color="red" />
       <stop offset="50%" stop-color="blue" />
       <stop offset="100%" stop-color="red" />
   </radialGradient>
</defs>

<rect fill="url(#MyGradient)" stroke="black" stroke-width="5" x="100" 
y="100"  width="600" height="200" />
</g>


The radialGradient definition system is quite the same as linearGradient 
the only change is the center point x of the circular effect and 
it's y ray lenght
I hope you get all the informations now to make gradient function 
in AGG/Draw complying with SVG informations
I tryed svg-demo-shad06.r under linux with wine rebol/view 1.3.1d 
and with the rebol/view 1.3beta version and the SVG renderer script 
present the same matrix tra	nsformation problem but the good news 
is that the rebol/view 1.3 for windows  and the rebol/view 1.3 for 
linuw are working both on linux using svg-demo-shad06.r script
Cyphre
18-Sep-2005
[509x2]
Yes, those versions(win linux) should be indentical. (except font 
handling)
Regarding the gradients: Thanks for the examples. Anyway, I've already 
known that you are missing the gradient color ratios so it is just 
a matter of time and priorities when this will be added so please 
be patient ;-)
yeksoon
21-Sep-2005
[511]
Draw SVG/AGG have progress so far that I cannot catch up with what 
it supports currently.


Does anyone have a quick feature overview of this? either a link 
or point form will do.
Cyphre
23-Sep-2005
[512x2]
yeksoon: here you can read latest version of DRAW docs:
http://www.rebol.com/docs/draw-ref.html
t is work-in-progress so there are some 'inconsisencies'. We are 
working on update soon.
shadwolf
5-Oct-2005
[514]
warn me when update is done ^^ I could finalise my SVG renderer widget 
for rebgui  ^^
Christian
9-Oct-2005
[515]
would it be possible to create a /view version for linux w/o need 
for an x server?
DideC
10-Oct-2005
[516]
Without X, no display except console. So it's not View anymore.
What do you need from View that is not in Core ?
Christian
10-Oct-2005
[517x3]
I'm only interested in dynamically generating images on the server 
for delivery within web browsers. That's another fantastic use case 
for REBOL/View.
Think chart servers, sparklines &c.
I'm quite reluctant to install X on a _web-accessible server_ just 
for /View, tho (and, hopefully, so is everyone else). Even the Java 
folks got that right, eventually - Java can run in "headless" mode, 
and yet allows people to access graphics functionality like Java 
2D &c.
Robert
10-Oct-2005
[520]
What you need is rebface
Volker
10-Oct-2005
[521]
maybe vnc is a compromize? i guess rebface wants x too, for fonts?
Gabriele
10-Oct-2005
[522]
Command allows you to use images and the effect pipeline without 
view functionality, afaik.
Christian
12-Oct-2005
[523]
Do recent /Commands include AGG already?
Cyphre
13-Oct-2005
[524]
I don't think so. You have to wait for the new Command SDK or write 
to RT's feedback.
Graham
13-Oct-2005
[525x3]
Done that.
any change ever of a native pdf browser ?
*chance*
Pekr
13-Oct-2005
[528]
pdf browser? what dao you mean?
Graham
13-Oct-2005
[529x2]
a way to view PDFs from Rebol without using anything else.
maybe we would need ghostscript installed as well to get all the 
fonts...
Pekr
13-Oct-2005
[531]
pdf maker is not enough?
Graham
13-Oct-2005
[532]
That allows you to make pdf . not view them.
Pekr
13-Oct-2005
[533]
hmm, but how you want to achieve that? You would have to have complete 
PDF specification parser and convert to AGG to display ...
DideC
13-Oct-2005
[534]
Acrobat ;-)
Pekr
13-Oct-2005
[535]
:-)
shadwolf
17-Oct-2005
[536x3]
use MDP ^^
serriously  it will be easier for you to use MakeDoc Pro and MDP-BRowser 
and enhance the mdp-engine capability to generate pdf docs...
than writiting to VID a performant  PDF renderer engine ...
Rebolek
21-Oct-2005
[539x4]
I was cleaning my FTP accound and I found AGG Animation engine I 
wrote year ago. It's probably not finished, but there's a small working 
demo. >> do http://krutek.info/rebol/aggregator-cleaned.r
Anim is 33 lines long and the engine is cca. 140
the dialect looks like this:
shape 'txt-i [
		fill-pen 255.0.0.50 font boldfont text 1 350x200 "rebol"
	] action [
		frame 1 show zoom 8 8 center 350x200 to-frame 55 
		frame 1 fade fill-pen 255.0.0.0 to-frame 15 
		frame 200 move -600x0 to-frame 250
	]
Geomol
21-Oct-2005
[543]
cool!
Rebolek
21-Oct-2005
[544]
Thanks:)
Izkata
21-Oct-2005
[545]
O_O  Nice!
(saves)
Geomol
24-Oct-2005
[546]
Cyphre, do you have any news about, when we'll see your different 
fixes in a release?
Cyphre
25-Oct-2005
[547]
Geomol, please be patient, lot of cool things is happening right 
now ;) I think Carl is planning to build a new View with updated 
AGG very soon.
Pekr
25-Oct-2005
[548]
Cyphre, speak, please - what cool things?