+
Skip to content

spector-9/shapes-using-ppm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Shapes using ppm file format.

This code generates ppm files. Ppm is an image file format that contains uncompressed data for RGB values, which makes them easy to edit without needing any dependency.

Resource to understand PPM

To Run

rustc main.rs
./main

Basic syntax for PPM

# This is a comment
# Line below specifies what kind of magic number we will use
P6
# Line below specifies the dimensions
120 120
# Specifies the max color value
255
# Magic number refer to the way you will add values of rgb per pixel.
# If we use P3 instead of P6 we can use ASCII as magic number but it takes more than double the size if we just use unsigned int.
# Watch the resource above to understand this completely.
# Magic number here

About

Using rust without any dependency or cargo to create ppm file.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载