[As-users] AfterStep XML Images and tiling Ex: AfterStep 2.0 beta4

M.-A. DARCHE (ma.darche@cynode.org)
Wed, 12 May 2004 23:00:18 +0200


Hello list,

Sasha wrote :
> >=20
> > Now, what I'm looking for is an "vertically and horizontally mirrored=
 tiled"
> > background. This couldn't be achieved with the previous version of
> > AfterStep and the only program I know which did that was xv [1]. It's
> > still possible to create mirrored tiles by hand and then giving them =
to
> > AfterStep but I would like AfterStep to provide this kind of tiling.
> >=20
> > So for example one provide this tile [2] to AfterStep and it gets
> > mirrored and tiled like [3]. Sasha could you make AfterStep do that ?
>=20
> You need to use XML to do that :
>=20
> <scale id=3D"tile" width=3D"$xroot.width/2" height=3D"$xroot.height/2">
> 	<img src=3D"background_tile"/>
> </scale>
>=20
> <composite id=3D"left_tile" width=3D"$xroot.width/2" height=3D"$xroot.h=
eight">
> 	<recall srcid=3D"tile"/>
> 	<mirror x=3D0 y=3D"$xroot.height/2" dir=3D"vertical">
> 		<recall srcid=3D"tile"/>
> 	</mirror>
> </composite>
>=20
> <composite width=3D"$xroot.width" height=3D"$xroot.height">
> 	<recall srcid=3D"left_tile"/>
> 	<mirror x=3D"$xroot.width/2" y=3D0 dir=3D"horizontal">
> 		<recall srcid=3D"left_tile"/>
> 	</mirror>
> </composite>
>=20
>=20
> where "background_tile" should be the filename of your original image,=20
> for example : "tiles/DefenselessElsie"
>=20
>=20

Your example works fine. Thank you. It didn't do exactly what I wanted,
because my description wasn't accurate enough, so it made me use
libAfterImage XML scripts a bit... and I like it, it's clean and
powerful.

Now I've got exactly my dream tiled background.

I'll soon send a patch to increase doc on the subject, I'm thinking
about the asxmlimages.html. I'll also soon send another patch to update
the doc in some places.


Thank you,

--=20
Marc-Aur=E8le DARCHE  <http://www.cynode.org/>
AFUL <http://www.aful.org/>
Association Francophone des Utilisateurs de Linux/Logiciels Libres
French speaking Linux and Libre Software Users' Association
_______________________________________________
As-users mailing list
As-users@afterstep.org
http://mail.afterstep.org/mailman/listinfo/as-users