mirror of https://github.com/Aloxaf/silicon
Release 0.2.5
This commit is contained in:
parent
8cc6e582d0
commit
13209ffd5f
|
@ -1179,7 +1179,7 @@ dependencies = [
|
|||
|
||||
[[package]]
|
||||
name = "silicon"
|
||||
version = "0.2.4"
|
||||
version = "0.2.5"
|
||||
dependencies = [
|
||||
"clipboard 0.5.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"conv 0.3.3 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
[package]
|
||||
name = "silicon"
|
||||
version = "0.2.4"
|
||||
version = "0.2.5"
|
||||
description = "Create beautiful image of your code"
|
||||
authors = ["Aloxaf <aloxafx@gmail.com>"]
|
||||
categories = ["command-line-utilities"]
|
||||
|
|
|
@ -9,7 +9,7 @@ Silicon is an alternative to [Carbon](https://github.com/dawnlabs/carbon) implem
|
|||
|
||||
It can render your source code into a beautiful image.
|
||||
|
||||
<img width="66%" src="http://storage.aloxaf.cn/silicon.png?v=1">
|
||||
<img width="66%" src="http://storage.aloxaf.cn/silicon.png?v=2">
|
||||
|
||||
## Why Silicon
|
||||
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
//! use image::{RgbImage, Rgb};
|
||||
//! use silicon::font::{FontCollection, FontStyle};
|
||||
//!
|
||||
//! let mut image = RgbImage::new(200, 100);
|
||||
//! let mut image = RgbImage::new(250, 100);
|
||||
//! let font = FontCollection::new(&[("Hack", 27.0), ("FiraCode", 27.0)]).unwrap();
|
||||
//!
|
||||
//! font.draw_text_mut(&mut image, Rgb([255, 0, 0]), 0, 0, FontStyle::REGULAR, "Hello, world");
|
||||
|
|
Loading…
Reference in New Issue