Skip to content

Silly sketch creation generator using math in use for games

License

Notifications You must be signed in to change notification settings

hartoman/FaceGenerator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FaceGenerator v1.0

Introduction

This simple application was written in Java 8.

Copyright © 2022 Christos Chartomatsidis

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.

Attribution is not required, but it would be really nice if given.

Purpose

FaceGenerator is a tool that generates cartoony sketches of faces.

A Game-Master (GM) can use these to create custom NPCs for his pen-and-paper RPG campaign / boardgame on the spot . The stand-alone classes can also be implemented in a computer game, to procedurally create content (i.e. for roguelike games).

FaceGenerator is intended as a personal project, made for fun and honing my skills in java. I hope you guys have as much of a good time playing around with it, as I had creating it.

How to use

Defining Parameters

General

Things are pretty straight-forward. This single-screen application has two sections: The canvas, where the face is being drawn, and the options panel, from where the user can fiddle with the parameters.

Custom-made

The sub-panels are color-coded for convenience. Through these, the user may experiment and adjust the drawn face, and create his own sketch without needing to do anything hand-drawn. There is also the option to add any image as visual background.

Random

There are also options to randomly create sketches of faces, both male, female, as well as a totally random combination of features,

Menu: Ι'm Serial

to-and-from .ser

Saves the sketch as a serialized (.ser) file, which can be loaded at a later time, and be further processed. This feature can be useful for computer games, to assign a portrait to each NPC, and have them change emotions during in-game events and conversations. Only the sketch is saved, not the background image.

Menu: Export Image

Through here, the painted image can be exported in two formats: jpg and png

as .JPG

This saves the map to a simple jpg image, located in the folder from where the application is running. This includes the chosen background image

as .PNG

Same as with jpg, but the background is transparent.

Technical Support

For suggestions, bug reports and any comments or extra ideas, you are all welcome to drop me a line.

About

Silly sketch creation generator using math in use for games

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages