Skip to content

A small Python program which generates random, or custom, images in the style of certain textures in the video game 'Cruelty Squad'. I learned Python with this project which is why the code is badly written, mismatched, and probably not very efficient ;).

License

Leynia/PainGenerator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation


Logo

PainGenerator

A small Python program to generate textures based on the video game Cruelty Squad.

Table of Contents
  1. About The Project
  2. Options
  3. Plans For The Future
  4. License
  5. Contact

About The Project

product-screenshot

Created by Leia.
Original textures and concept from Cruelty Squad by Ville Kallio, Consummer Softproducts.

Pain Generator is a small python program which allows you to generate random images in the style of the 'PUNISHMENT' texture from the Cruelty Squad level MALL MADNESS, there is also the option for the texture to be generated based on user input.
I learned Python with this project which is why the code is badly written, mismatched, and probably not very efficient ;).

This page is just an easy way to get the source code in case you'd like to tinker with the program and run it in your own python environment, for a fully functional .exe with no requirements needed, head to https://crus.cc/mod/pain_generator/.

This github repo contains a pregenerated .spec file to easily build the program using the PyInstaller package if you wish to make your own .exe.

(back to top)

Requirements

  • A python environment

Required Packages:

  • Pillow
  • NLTK
  • PySimpleGUI

Options

Random/User Generated Checkbox = Switch between random or user input-based generation.

[User input-based mode] Word = Word you'd like to have on the texture.

[User input-based mode] Hex Value 1, 2, Reset Hex = The color you would like to have as a gradient on the texture, must be in HEX value (Example : White = #FFFFFF), Reset Hex button resets to the basic program values (Red and Blue).

[Random mode] How many images would you like to generate = The number of image you would like to be randomly generated. 1 -> 100.

[Random mode] Wordlist = This program has three built in wordlists, "Cyberpunk AF" is a wordlist based upon William Gibson's "SPRAWL" trilogy of books. "TempleOS" is based upon the OS and writings of Terry A. Davis. "1894" is based upon the classic book "1984" by George Orwell.

The lists have been carefully crafted but are large ('Cyberpunk AF' = ~21000 words, 'TempleOS' = ~7000 words, '1894' = ~7000 words), they are not supposed to contain any words which may be interpreted as offensive to any group, but if you find one, please contact me on Discord.

Output Folder = where you would like the images to be saved. Default folder is the "Results" folder bundled along with the software.

(back to top)

Plans for the future

  • Create a Discord Bot which automatically generates images every x amount of time and posts it on the server.
  • Create a lite WebUI version of PainGenerator which can run in a website.

License

Distributed under The Unlicense license. See LICENSE.txt for more information.

(back to top)

Contact

Twitter - @LeiaIsOnline
Discord - Leia#4939

Project Link: https://github.com/Leynia/PainGenerator

(back to top)

About

A small Python program which generates random, or custom, images in the style of certain textures in the video game 'Cruelty Squad'. I learned Python with this project which is why the code is badly written, mismatched, and probably not very efficient ;).

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Languages