All Projects → DarrenN → Identikon

DarrenN / Identikon

Licence: mit
Racket scripts for generating identicons

Programming Languages

racket
414 projects

Labels

Projects that are alternatives of or similar to Identikon

Unity Ugui Xcharts
A charting and data visualization library for Unity. 一款基于UGUI的数据可视化图表插件。
Stars: ✭ 1,086 (+1310.39%)
Mutual labels:  graphics
Pymesh
Geometry Processing Library for Python
Stars: ✭ 1,135 (+1374.03%)
Mutual labels:  graphics
Images example
A simple example program made for the 42 students going into the graphic branch. Its purpose is to help them understanding the way images are working in the MLX (the graphcal lib we use).
Stars: ✭ 69 (-10.39%)
Mutual labels:  graphics
Gotracer
A distributed Go implementation of Ray Tracing in One Weekend by Peter Shirley
Stars: ✭ 59 (-23.38%)
Mutual labels:  graphics
Drawmeshwithmotionvectors
An example showing how to generate per-object motion vectors when using DrawMesh.
Stars: ✭ 65 (-15.58%)
Mutual labels:  graphics
3d Game Shaders For Beginners
🎮 A step-by-step guide to implementing SSAO, depth of field, lighting, normal mapping, and more for your 3D game.
Stars: ✭ 11,698 (+15092.21%)
Mutual labels:  graphics
Blurry
🌫 Image Blurring in Swift
Stars: ✭ 56 (-27.27%)
Mutual labels:  graphics
Gpcs4
A Playstation 4 emulator just begin
Stars: ✭ 1,186 (+1440.26%)
Mutual labels:  graphics
Gl vs vk
Comparison of OpenGL and Vulkan API in terms of performance.
Stars: ✭ 65 (-15.58%)
Mutual labels:  graphics
Axis3d
Functional 3d graphics library
Stars: ✭ 67 (-12.99%)
Mutual labels:  graphics
Retouch
🎬 An OpenGL application for editing and retouching images using depth-maps in 2.5D
Stars: ✭ 63 (-18.18%)
Mutual labels:  graphics
Indielib Crossplatform
IndieLib is a cross-platform Game Graphics engine. Main focus is OpenGL ES 2.0 for mobile iOS operating system, and OpenGL desktop. **NOT SUPPORTED ANYMORE**
Stars: ✭ 64 (-16.88%)
Mutual labels:  graphics
Openframeworks
openFrameworks is a community-developed cross platform toolkit for creative coding in C++.
Stars: ✭ 8,652 (+11136.36%)
Mutual labels:  graphics
Nnao
Neural Network Ambien Occlusion based on http://theorangeduck.com/page/neural-network-ambient-occlusion
Stars: ✭ 57 (-25.97%)
Mutual labels:  graphics
Fruity
Rusty bindings for Apple libraries
Stars: ✭ 72 (-6.49%)
Mutual labels:  graphics
Aggpasmod
Modernized Pascal Anti-Grain Geometry
Stars: ✭ 56 (-27.27%)
Mutual labels:  graphics
Shaderconductor
ShaderConductor is a tool designed for cross-compiling HLSL to other shading languages
Stars: ✭ 1,146 (+1388.31%)
Mutual labels:  graphics
Go Trace
Implementing a path tracer in Go
Stars: ✭ 77 (+0%)
Mutual labels:  graphics
Vue Dataflow Editor
Vue 2 dataflow graph editor
Stars: ✭ 73 (-5.19%)
Mutual labels:  graphics
Graphics Algorithm
3D图形学算法Code。包括软渲染、光线追踪、PBR等等~
Stars: ✭ 67 (-12.99%)
Mutual labels:  graphics

a b c

identikon

A small collection of Racket scripts for generating identicons. This is very much alpha and will be changing a lot as I learn more about Racket. Identicons can be saved as PNG or SVG. Obligatory blog post.

Install

$ raco pkg install identikon

Dependencies

You will need to install sugar, quickcheck and css-tools.

Usage

Requiring identikon in Dr. Racket or Emacs with racket-mode or Geiser will give you access to the identikon function in the REPL:

(require identikon)

; Generate a default 300px identicon for "racket"
(identikon 300 300 "racket")

; Generate a q*bert style 300px identicon for "racket"
(identikon 300 300 "racket" "qbert")

; Generate a q*bert style 300px identicon for "racket" and save as an svg
(identikon 300 300 "racket" "qbert" "svg")

; start having real fun with identicons
(require identikon
         2htdp/image)

(define foo (identikon 200 200 "foo"))
(define bar (identikon 200 200 "bar"))
(beside
 (above foo bar)
 (above bar foo))

Note: Trying to use identikon in a standard CLI racket REPL will just return an (object:image% ...) instead of rendering the image. You could save an image to the filesystem this way: (identikon 300 300 "racket" "default" "svg"). If you're accessing the CLI REPL via either racket-mode or Geiser in Emacs then the images will render just fine like so:

geiser

CLI interface (via Raco)

-h  Help
-s  (multi) Size (all identikons are currently squares)
-i  String to convert to identicon
-f  File or input stream used to generate identikon
-r  (optional) Ruleset to use
-t  (optional) Filetype to save as: "png" or "svg"; defaults to png

$ raco identikon -s 300 -i "FooBarBaz"

$ raco identikon -s 300 -i "FooBarBaz" -r "squares"

$ raco identikon -s 300 -i "FooBarBaz" -r "squares" -t "svg"

$ raco identikon -s 300 -s 200 -s 100 -i "FooBarBaz" -r "stars" -t "svg"

Built-in rule sets

Each identicon has a rules file (ex: default.rkt) which is responsible for taking the input data and generating an image as it sees fit. There are a few existing rule sets to play with.

default.rkt

d

qbert.rkt

s

squares.rkt

s

circles.rkt

c

angles.rkt

a

angles2.rkt

a

nineblock.rkt

n

stars.rkt

s

rings.rkt

r

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].