Skip to content

Commit a7cdf75

Browse files
Add the license to the documentation of the const gradients
1 parent 3a7dbc9 commit a7cdf75

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

palette/build/named.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ pub fn build_gradients(writer: &mut File) {
7171
.parse().unwrap_or_else(|_| panic!("couldn't parse the number of colors for color {}", name));
7272
writeln!(writer, "/// New matplotlib colormap by Nathaniel J. Smith, Stefan van der Walt, and (in the case of viridis) Eric Firing.").unwrap();
7373
writeln!(writer, "/// This gradient is perfectly perceptually-uniform, both in regular form and also when converted to black-and-white.").unwrap();
74-
//writeln!(writer, "/// The colormap is released under the CC0 license public domain dedication.").unwrap();
74+
writeln!(writer, "/// The colormap is released under the CC0 license public domain dedication.").unwrap();
7575
write!(writer,
7676
"pub const {0}: crate::gradient::Gradient<{1}, [(f32,{1});{2}]> = crate::gradient::Gradient([",
7777
name.to_uppercase(), color_type, number_of_colors).unwrap();

0 commit comments

Comments
 (0)