This project is developed for the 2019 Seattle Code for the Kingdom (C4TK) hackathon, in which it won the people's choice award for the best overall app.
The repository contains our Python implementation with Tk GUI that randomly generates scripture art, i.e., images with Bible verse(s), for the user.
This package is designed for random generation of scripture art. The input is a scripture quote, such as John 3:16 and Jeremiah 29:11-13, in the GUI panel. Then the user can generate various styles of random scripture art images, and save their favorite one(s). To ensure that the color of the scripture text has high contrast against the background, we compute the mean color of the background, and find the complement color in the HSV color space for the text. There is also an iterative scheme that automatically searches for the optimum font size for the scripture.
./create_scripture_art.py
: The main Python code of our app./bible/
folder: Bible database with csv files (from bible_databases) and the default Bible version is ASV./font/
folder: Default fonts to be randomly chosen from./bg/
folder: Default backgrounds to be randomly chosen from./output/
folder: Folder for image output
- Install required Python packages.
pip install python-scriptures
pip install pillow
- Change directory to the cloned repository.
cd <Scripture_Art>
- (Option) Add your own images or fonts in the corresponding folders
- Run the Python script.
python create_scripture_art.py
- Input the scripture quote at "Scripture quote:", such as John 3:16 and Jeremiah 29:11-13.
- Click the "Create" button and then a scripture art will be automatically generated.
- Click the "Next" button to generate a new scripture art.
- Click the "Save" button to save your scripture art, which will be saved in the output folder.
For any question you can contact Yijin (Macy) Lee.