Skip to content

Latest commit

 

History

History
23 lines (16 loc) · 652 Bytes

create-image-and-draw-lines.md

File metadata and controls

23 lines (16 loc) · 652 Bytes
title timestamp author published description tags
Create and image and draw a line in Rust
2023-10-01 12:30:01 -0700
szabgab
true
image
graphics
draw

In this example we continue the cration of simple images using the image Rust crate.

We started with an empty image and now with this code we created two small images and drew two lines:

veritcal green line

horizontal red line

{% include file="examples/create-image-draw-line/src/main.rs" %}