Skip to content

jadethomp/artGenerator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

artGenerator

This program generates "modern art" in a CLI using binary semaphores, shared memory, and parent/child processes. It is written in C and uses gcc for compilation.

Adapted from an assignment for my Systems Programming course (CSE 3183 at MSU). The width of the art and number-character pairs that make up the art are randomly generated by a child process and stored in a shared struct. The parent process reads the values from the shared struct and outputs each quantity of letters (as denoted within each pair) with the artsy formatting. Colors within the art are derived from ANSI color codes, based on the progression of ASCII values of the characters within the pairs.

A makefile is included in this repo. Simply run "make", then "./artGenerator". Again, output is randomized, so run multiple times for more unique art pieces! Note that rand() is seeded by time, so I've found that running the program twice in the same second produces the same art.

About

Generates "modern art" in a CLI using semaphores, shared memory, and parent/child processes.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors