(type egg)
(signature "color egg")
(timestamp 1612269487)
(sxml ((section 2 "Outdated egg!" (p "This is an egg for CHICKEN 4, the unsupported old release.  You're almost certainly looking for " (int-link "/eggref/5/color" "the CHICKEN 5 version of this egg") ", if it exists.") (p "If it does not exist, there may be equivalent functionality provided by another egg; have a look at the " (link "https://wiki.call-cc.org/chicken-projects/egg-index-5.html" "egg index") ". Otherwise, please consider porting this egg to the current version of CHICKEN.") (toc) (tags "egg")) (section 2 "color" (p "Measurement-based Color Spaces") (section 3 "Description" (p "A port of the " (link "http://people.csail.mit.edu/jaffer/SLIB" "SLIB") " color library. For documentation see:") (p (link "http://people.csail.mit.edu/jaffer/slib/Color.html#Color" "color"))) (section 3 "Requirements" (p (int-link "fmt") ", " (int-link "records"))) (section 3 "Examples" (highlight scheme ";;; construct some colors in various color spaces\n;;; and measure their distance from the D65 white-point\n\n(import color srfi-13)\n\n(let ((rgb-red    (make-color 'sRGB   '(255  0    0)))\n\t  (lab-yellow (make-color 'L*a*b* '( 76  7  130)))\n\t  (luv-blue   (make-color 'L*u*v* '( 32 -9 -132))))\n  (print \"rgb-red's distance from the D65 whitepoint is \"    (CIE:DE* rgb-red D65 D65))\n  (print \"lab-yellow's distance from the D65 whitepoint is \" (CIE:DE* lab-yellow D65 D65))\n  (print \"luv-blue's distance from the D65 whitepoint is \"   (CIE:DE* luv-blue D65 D65))\n  (print \"D65's distance from the D65 whitepoint is \"        (CIE:DE* D65 D65 D65)))")) (section 3 "Author" (p "Aubrey Jaffer")) (section 3 "Maintainer" (p "Erik Falor <ewfalor at gmail dot com>")) (section 3 "Version history" (dl (dt "1.0") (dd "Initial release as CHICKEN Scheme egg"))) (section 3 "License" (p "Copyright 2001, 2002 Aubrey Jaffer") (p "Permission to copy this software, to modify it, to redistribute it, to distribute modified versions, and to use it for any purpose is granted, subject to the following restrictions and understandings.") (p "1.  Any copy made of this software must include this copyright notice in full.") (p "2.  I have made no warranty or representation that the operation of this software will be error-free, and I am under no obligation to provide any services, by way of maintenance, update, or otherwise.") (p "3.  In conjunction with products arising from the use of this material, there shall be no use of my name in any advertising, promotional, or sales literature without prior written consent in each case.")))))
