Skip to content

Commit

Permalink
Fix image urls
Browse files Browse the repository at this point in the history
  • Loading branch information
mazznoer committed Feb 10, 2021
1 parent 6613e8b commit 3a50ae9
Showing 1 changed file with 18 additions and 9 deletions.
27 changes: 18 additions & 9 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -100,17 +100,26 @@
//!
//! ## Preset Gradients
//!
//! [colorgrad::rainbow()](fn.rainbow.html)
//! ![img](https://raw.githubusercontent.com/mazznoer/colorgrad-rs/master/doc/images/preset/rainbow.png)
//!
//! [colorgrad::sinebow()](fn.sinebow.html)
//! ![img](https://raw.githubusercontent.com/mazznoer/colorgrad-rs/master/doc/images/preset/sinebow.png)
//! [colorgrad::cubehelix_default()](fn.cubehelix_default.html)
//! ![img](https://raw.githubusercontent.com/mazznoer/colorgrad-rs/master/docs/images/preset/cubehelix_default.png)
//!
//! [colorgrad::turbo()](fn.turbo.html)
//! ![img](https://raw.githubusercontent.com/mazznoer/colorgrad-rs/master/doc/images/preset/turbo.png)
//! ![img](https://raw.githubusercontent.com/mazznoer/colorgrad-rs/master/docs/images/preset/turbo.png)
//!
//! [colorgrad::spectral()](fn.spectral.html)
//! ![img](https://raw.githubusercontent.com/mazznoer/colorgrad-rs/master/doc/images/preset/spectral.png)
//! ![img](https://raw.githubusercontent.com/mazznoer/colorgrad-rs/master/docs/images/preset/spectral.png)
//!
//! [colorgrad::viridis()](fn.viridis.html)
//! ![img](https://raw.githubusercontent.com/mazznoer/colorgrad-rs/master/docs/images/preset/viridis.png)
//!
//! [colorgrad::magma()](fn.magma.html)
//! ![img](https://raw.githubusercontent.com/mazznoer/colorgrad-rs/master/docs/images/preset/magma.png)
//!
//! [colorgrad::rainbow()](fn.rainbow.html)
//! ![img](https://raw.githubusercontent.com/mazznoer/colorgrad-rs/master/docs/images/preset/rainbow.png)
//!
//! [colorgrad::sinebow()](fn.sinebow.html)
//! ![img](https://raw.githubusercontent.com/mazznoer/colorgrad-rs/master/docs/images/preset/sinebow.png)
//!
//! See more complete gradient preview and examples at [Github](https://github.com/mazznoer/colorgrad-rs).

Expand Down Expand Up @@ -201,12 +210,12 @@ impl Gradient {
/// ```
/// let g = colorgrad::rainbow();
/// ```
/// ![img](https://raw.githubusercontent.com/mazznoer/colorgrad-rs/master/doc/images/preset/rainbow.png)
/// ![img](https://raw.githubusercontent.com/mazznoer/colorgrad-rs/master/docs/images/preset/rainbow.png)
///
/// ```
/// let g = colorgrad::rainbow().sharp(11, 0.);
/// ```
/// ![img](https://raw.githubusercontent.com/mazznoer/colorgrad-rs/master/doc/images/rainbow-sharp.png)
/// ![img](https://raw.githubusercontent.com/mazznoer/colorgrad-rs/master/docs/images/rainbow-sharp.png)
pub fn sharp(&self, segment: usize, smoothness: f64) -> Gradient {
if segment < 2 {
let gradbase = SharpGradient {
Expand Down

0 comments on commit 3a50ae9

Please sign in to comment.