diff options
Diffstat (limited to 'src/algebra')
-rw-r--r-- | src/algebra/Makefile.in | 2 | ||||
-rw-r--r-- | src/algebra/Makefile.pamphlet | 2 | ||||
-rw-r--r-- | src/algebra/color.spad.pamphlet | 57 | ||||
-rw-r--r-- | src/algebra/exposed.lsp.pamphlet | 2 |
4 files changed, 56 insertions, 7 deletions
diff --git a/src/algebra/Makefile.in b/src/algebra/Makefile.in index 9138480b..28d59a89 100644 --- a/src/algebra/Makefile.in +++ b/src/algebra/Makefile.in @@ -826,7 +826,7 @@ axiom_algebra_layer_user = \ LETAST SUCHAST RDUCEAST COLONAST ADDAST CAPSLAST \ CASEAST HASAST ISAST CATAST WHEREAST COMMAAST \ QQUTAST DEFAST MACROAST SPADXPT SPADAST \ - INBFILE OUTBFILE + INBFILE OUTBFILE RGBCMDL RGBCSPC axiom_algebra_layer_user_nrlibs = \ $(addsuffix .NRLIB/code.$(FASLEXT),$(axiom_algebra_layer_user)) diff --git a/src/algebra/Makefile.pamphlet b/src/algebra/Makefile.pamphlet index 836f0f2b..53ce4b35 100644 --- a/src/algebra/Makefile.pamphlet +++ b/src/algebra/Makefile.pamphlet @@ -1253,7 +1253,7 @@ axiom_algebra_layer_user = \ LETAST SUCHAST RDUCEAST COLONAST ADDAST CAPSLAST \ CASEAST HASAST ISAST CATAST WHEREAST COMMAAST \ QQUTAST DEFAST MACROAST SPADXPT SPADAST \ - INBFILE OUTBFILE + INBFILE OUTBFILE RGBCMDL RGBCSPC axiom_algebra_layer_user_nrlibs = \ $(addsuffix .NRLIB/code.$(FASLEXT),$(axiom_algebra_layer_user)) diff --git a/src/algebra/color.spad.pamphlet b/src/algebra/color.spad.pamphlet index 4a6b7387..5db08528 100644 --- a/src/algebra/color.spad.pamphlet +++ b/src/algebra/color.spad.pamphlet @@ -1,15 +1,56 @@ \documentclass{article} \usepackage{axiom} + +\title{src/algebra color.spad} + \begin{document} -\title{\$SPAD/src/algebra color.spad} -\author{Jim Wen} +\author{Gabriel Dos~Reis \and Jim Wen} + \maketitle \begin{abstract} \end{abstract} -\eject \tableofcontents \eject + +\section{The category of RGB Color Model} + +<<category RGBCMDL RGBColorModel>>= +)abbrev category RGBCMDL RGBColorModel +++ Author: Gabriel Dos Reis +++ Date Created: October 06, 2008 +++ Related Constructor: +++ Description: +++ This category defines the common interface for RGB color models. +RGBColorModel(T: AbelianMonoid): Category == AbelianMonoid with + red: % -> T + ++ red(c) returns the `red' component of `c'. + green: % -> T + ++ green(c) returns the `green' component of `c'. + blue: % -> T + ++ blue(c) returns the `blue' component of `c'. + componentUpperBound: T + ++ componentUpperBound is an upper bound for all component values. +@ + + +\section{The category of RGB Color Space} + +<<category RGBCSPC RGBColorSpace>>= +)abbrev category RGBCSPC RGBColorSpace +++ Author: Gabriel Dos Reis +++ Date Created: October 06, 2008 +++ Related Constructor: +++ Description: +++ This category defines the common interface for RGB color spaces. +RGBColorSpace(T: AbelianMonoid): Category == RGBColorModel T with + whitePoint: % + ++ whitepoint is the contant indicating the white point + ++ of this color space. +@ + + \section{domain COLOR Color} + <<domain COLOR Color>>= )abbrev domain COLOR Color ++ Author: Jim Wen @@ -160,7 +201,10 @@ Palette(): Exports == Implementation where @ \section{License} <<license>>= ---Copyright (c) 1991-2002, The Numerical ALgorithms Group Ltd. +--Copyright (c) 1991-2002, The Numerical Algorithms Group Ltd. +--All rights reserved. +-- +--Copyright (C) 2007-2008, Gabriel Dos Reis. --All rights reserved. -- --Redistribution and use in source and binary forms, with or without @@ -175,7 +219,7 @@ Palette(): Exports == Implementation where -- the documentation and/or other materials provided with the -- distribution. -- --- - Neither the name of The Numerical ALgorithms Group Ltd. nor the +-- - Neither the name of The Numerical Algorithms Group Ltd. nor the -- names of its contributors may be used to endorse or promote products -- derived from this software without specific prior written permission. -- @@ -193,6 +237,9 @@ Palette(): Exports == Implementation where @ <<*>>= <<license>> + +<<category RGBCMDL RGBColorModel>> +<<category RGBCSPC RGBColorSpace>> <<domain COLOR Color>> <<domain PALETTE Palette>> diff --git a/src/algebra/exposed.lsp.pamphlet b/src/algebra/exposed.lsp.pamphlet index e19ec96c..18e6384f 100644 --- a/src/algebra/exposed.lsp.pamphlet +++ b/src/algebra/exposed.lsp.pamphlet @@ -740,6 +740,8 @@ (|RegularChain| . RGCHAIN) (|RegularTriangularSetCategory| . RSETCAT) (|RetractableTo| . RETRACT) + (|RGBColorModel| . RGBCMDL) + (|RGBColorSpace| . RGBCSPC) (|RightModule| . RMODULE) (|Ring| . RING) (|Rng| . RNG) |