[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

gEDA-dev: Darker grid color when zoomed out



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi guys

I finally had some time to do some electronic design again and hack on
gschem. Since I'm just learning to use git I made a small patch to try
it out.

This patch defines a new color "grid-blend-color" which is a darker or
lighter variant of the "grid-color" (depending on the color used for
background). This color is used for drawing the grid when grid is in
fixed mode and distance between grid points falls bellow the number of
screen pixels specified in "w_current->grid_fixed_blend_threshold".

The end result is that the schematic is a bit more readable when zoomed
out and grid points are still well visible when zoomed in. This is
basically a primitive simulation of rendering grid points that are less
than one pixel in diameter.

I submitted it to sf.net tracker in case anyone else finds it useful. I
guess it won't be necessary once gschem gets support for cairo.

http://sourceforge.net/tracker/index.php?func=detail&aid=1880298&group_id=161080&atid=818428

When I made this patch I also noticed the weird way colors are set via
Scheme functions. Is there a reason why for example Scheme functions for
defining colors must have the "DO NOT CHANGE" index parameter? Why
couldn't this parameter be set to a constant value for each function
call in g_rc.c?

Best regards
Tomaz
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHm0ZusAlAlRhL9q8RAgFFAJ4sV16ly9cfxU7euBxJq6pqvT82tQCfQIkX
pMl/BPy6rpukQUWUjMlnEdE=
=sV0p
-----END PGP SIGNATURE-----


_______________________________________________
geda-dev mailing list
geda-dev@xxxxxxxxxxxxxx
http://www.seul.org/cgi-bin/mailman/listinfo/geda-dev