summaryrefslogtreecommitdiffstats
path: root/libdimension/solid_pigment.c
diff options
context:
space:
mode:
Diffstat (limited to 'libdimension/solid_pigment.c')
-rw-r--r--libdimension/solid_pigment.c23
1 files changed, 12 insertions, 11 deletions
diff --git a/libdimension/solid_pigment.c b/libdimension/solid_pigment.c
index 2b878c7..14bdffe 100644
--- a/libdimension/solid_pigment.c
+++ b/libdimension/solid_pigment.c
@@ -18,12 +18,21 @@
* <http://www.gnu.org/licenses/>. *
*************************************************************************/
+/**
+ * @file
+ * Solid color pigments.
+ */
+
#include "dimension.h"
#include <stdlib.h>
-/* Solid color pigment callback */
-static dmnsn_color dmnsn_solid_pigment_fn(const dmnsn_pigment *pigment,
- dmnsn_vector v);
+/** Solid color pigment callback. */
+static dmnsn_color
+dmnsn_solid_pigment_fn(const dmnsn_pigment *pigment, dmnsn_vector v)
+{
+ dmnsn_color *color = pigment->ptr;
+ return *color;
+}
/* Create a solid color */
dmnsn_pigment *
@@ -41,11 +50,3 @@ dmnsn_new_solid_pigment(dmnsn_color color)
return pigment;
}
-
-/* Solid color callback */
-static dmnsn_color
-dmnsn_solid_pigment_fn(const dmnsn_pigment *pigment, dmnsn_vector v)
-{
- dmnsn_color *color = pigment->ptr;
- return *color;
-}