SYMBOL INDEX (182 symbols across 21 files) FILE: bot/main.py class AttrDict (line 43) | class AttrDict(dict): method __init__ (line 44) | def __init__(self, *args, **kwargs): class Config (line 48) | class Config(AttrDict): method randomize (line 49) | def randomize(self): method parse (line 56) | def parse(self, text): method validate (line 67) | def validate(self): method description (line 76) | def description(self): function clamp (line 80) | def clamp(x, lo, hi): function random_date (line 87) | def random_date(max_days_ago=1000): function interesting (line 93) | def interesting(date=None): function photo_url (line 106) | def photo_url(p, size=None): function download_photo (line 115) | def download_photo(url, path): function primitive (line 120) | def primitive(**kwargs): function twitter_api (line 131) | def twitter_api(): function tweet (line 138) | def tweet(status, media, in_reply_to_status_id=None): function handle_mentions (line 142) | def handle_mentions(): function handle_mention (line 153) | def handle_mention(status): function flickr_url (line 198) | def flickr_url(photo_id): function base_encode (line 202) | def base_encode(alphabet, number, suffix=''): function generate (line 210) | def generate(): function main (line 235) | def main(): function download_photos (line 254) | def download_photos(folder, date=None): FILE: main.go type flagArray (line 34) | type flagArray method String (line 36) | func (i *flagArray) String() string { method Set (line 40) | func (i *flagArray) Set(value string) error { type shapeConfig (line 45) | type shapeConfig struct type shapeConfigArray (line 52) | type shapeConfigArray method String (line 54) | func (i *shapeConfigArray) String() string { method Set (line 58) | func (i *shapeConfigArray) Set(value string) error { function init (line 64) | func init() { function errorMessage (line 80) | func errorMessage(message string) bool { function check (line 85) | func check(err error) { function main (line 91) | func main() { FILE: primitive/color.go type Color (line 9) | type Color struct method NRGBA (line 42) | func (c *Color) NRGBA() color.NRGBA { function MakeColor (line 13) | func MakeColor(c color.Color) Color { function MakeHexColor (line 18) | func MakeHexColor(x string) Color { FILE: primitive/core.go function computeColor (line 8) | func computeColor(target, current *image.RGBA, lines []Scanline, alpha i... function copyLines (line 36) | func copyLines(dst, src *image.RGBA, lines []Scanline) { function drawLines (line 44) | func drawLines(im *image.RGBA, c Color, lines []Scanline) { function differenceFull (line 65) | func differenceFull(a, b *image.RGBA) float64 { function differencePartial (line 91) | func differencePartial(target, before, after *image.RGBA, score float64,... FILE: primitive/ellipse.go type Ellipse (line 11) | type Ellipse struct method Draw (line 35) | func (c *Ellipse) Draw(dc *gg.Context, scale float64) { method SVG (line 40) | func (c *Ellipse) SVG(attrs string) string { method Copy (line 46) | func (c *Ellipse) Copy() Shape { method Mutate (line 51) | func (c *Ellipse) Mutate() { method Rasterize (line 72) | func (c *Ellipse) Rasterize() []Scanline { function NewRandomEllipse (line 18) | func NewRandomEllipse(worker *Worker) *Ellipse { function NewRandomCircle (line 27) | func NewRandomCircle(worker *Worker) *Ellipse { type RotatedEllipse (line 102) | type RotatedEllipse struct method Draw (line 119) | func (c *RotatedEllipse) Draw(dc *gg.Context, scale float64) { method SVG (line 127) | func (c *RotatedEllipse) SVG(attrs string) string { method Copy (line 133) | func (c *RotatedEllipse) Copy() Shape { method Mutate (line 138) | func (c *RotatedEllipse) Mutate() { method Rasterize (line 154) | func (c *RotatedEllipse) Rasterize() []Scanline { function NewRandomRotatedEllipse (line 109) | func NewRandomRotatedEllipse(worker *Worker) *RotatedEllipse { FILE: primitive/heatmap.go type Heatmap (line 9) | type Heatmap struct method Clear (line 19) | func (h *Heatmap) Clear() { method Add (line 25) | func (h *Heatmap) Add(lines []Scanline) { method AddHeatmap (line 35) | func (h *Heatmap) AddHeatmap(a *Heatmap) { method Image (line 41) | func (h *Heatmap) Image(gamma float64) *image.Gray16 { function NewHeatmap (line 14) | func NewHeatmap(w, h int) *Heatmap { FILE: primitive/log.go function Log (line 7) | func Log(level int, format string, a ...interface{}) { function v (line 13) | func v(format string, a ...interface{}) { function vv (line 17) | func vv(format string, a ...interface{}) { function vvv (line 21) | func vvv(format string, a ...interface{}) { FILE: primitive/model.go type Model (line 11) | type Model struct method newContext (line 57) | func (model *Model) newContext() *gg.Context { method Frames (line 66) | func (model *Model) Frames(scoreDelta float64) []image.Image { method SVG (line 86) | func (model *Model) SVG() string { method Add (line 103) | func (model *Model) Add(shape Shape, alpha int) { method Step (line 119) | func (model *Model) Step(shapeType ShapeType, alpha, repeat int) int { method runWorkers (line 147) | func (model *Model) runWorkers(t ShapeType, a, n, age, m int) *State { method runWorker (line 172) | func (model *Model) runWorker(worker *Worker, t ShapeType, a, n, age, ... function NewModel (line 25) | func NewModel(target image.Image, background Color, size, numWorkers int... FILE: primitive/optimize.go type Annealable (line 8) | type Annealable interface function HillClimb (line 15) | func HillClimb(state Annealable, maxAge int) Annealable { function PreAnneal (line 36) | func PreAnneal(state Annealable, iterations int) float64 { function Anneal (line 49) | func Anneal(state Annealable, maxTemp, minTemp float64, steps int) Annea... FILE: primitive/polygon.go type Polygon (line 11) | type Polygon struct method Draw (line 33) | func (p *Polygon) Draw(dc *gg.Context, scale float64) { method SVG (line 42) | func (p *Polygon) SVG(attrs string) string { method Copy (line 54) | func (p *Polygon) Copy() Shape { method Mutate (line 63) | func (p *Polygon) Mutate() { method Valid (line 84) | func (p *Polygon) Valid() bool { method Rasterize (line 111) | func (p *Polygon) Rasterize() []Scanline { function NewRandomPolygon (line 18) | func NewRandomPolygon(worker *Worker, order int, convex bool) *Polygon { function cross3 (line 103) | func cross3(x1, y1, x2, y2, x3, y3 float64) float64 { FILE: primitive/quadratic.go type Quadratic (line 11) | type Quadratic struct method Draw (line 33) | func (q *Quadratic) Draw(dc *gg.Context, scale float64) { method SVG (line 40) | func (q *Quadratic) SVG(attrs string) string { method Copy (line 48) | func (q *Quadratic) Copy() Shape { method Mutate (line 53) | func (q *Quadratic) Mutate() { method Valid (line 78) | func (q *Quadratic) Valid() bool { method Rasterize (line 91) | func (q *Quadratic) Rasterize() []Scanline { function NewRandomQuadratic (line 19) | func NewRandomQuadratic(worker *Worker) *Quadratic { FILE: primitive/raster.go function fix (line 8) | func fix(x float64) fixed.Int26_6 { function fixp (line 12) | func fixp(x, y float64) fixed.Point26_6 { type painter (line 16) | type painter struct method Paint (line 20) | func (p *painter) Paint(spans []raster.Span, done bool) { function fillPath (line 26) | func fillPath(worker *Worker, path raster.Path) []Scanline { function strokePath (line 37) | func strokePath(worker *Worker, path raster.Path, width fixed.Int26_6, c... FILE: primitive/rectangle.go type Rectangle (line 10) | type Rectangle struct method bounds (line 25) | func (r *Rectangle) bounds() (x1, y1, x2, y2 int) { method Draw (line 37) | func (r *Rectangle) Draw(dc *gg.Context, scale float64) { method SVG (line 43) | func (r *Rectangle) SVG(attrs string) string { method Copy (line 52) | func (r *Rectangle) Copy() Shape { method Mutate (line 57) | func (r *Rectangle) Mutate() { method Rasterize (line 71) | func (r *Rectangle) Rasterize() []Scanline { function NewRandomRectangle (line 16) | func NewRandomRectangle(worker *Worker) *Rectangle { type RotatedRectangle (line 80) | type RotatedRectangle struct method Draw (line 99) | func (r *RotatedRectangle) Draw(dc *gg.Context, scale float64) { method SVG (line 109) | func (r *RotatedRectangle) SVG(attrs string) string { method Copy (line 115) | func (r *RotatedRectangle) Copy() Shape { method Mutate (line 120) | func (r *RotatedRectangle) Mutate() { method Valid (line 140) | func (r *RotatedRectangle) Valid() bool { method Rasterize (line 149) | func (r *RotatedRectangle) Rasterize() []Scanline { function NewRandomRotatedRectangle (line 87) | func NewRandomRotatedRectangle(worker *Worker) *RotatedRectangle { FILE: primitive/scanline.go type Scanline (line 3) | type Scanline struct function cropScanlines (line 8) | func cropScanlines(lines []Scanline, w, h int) []Scanline { FILE: primitive/shape.go type Shape (line 5) | type Shape interface type ShapeType (line 13) | type ShapeType constant ShapeTypeAny (line 16) | ShapeTypeAny ShapeType = iota constant ShapeTypeTriangle (line 17) | ShapeTypeTriangle constant ShapeTypeRectangle (line 18) | ShapeTypeRectangle constant ShapeTypeEllipse (line 19) | ShapeTypeEllipse constant ShapeTypeCircle (line 20) | ShapeTypeCircle constant ShapeTypeRotatedRectangle (line 21) | ShapeTypeRotatedRectangle constant ShapeTypeQuadratic (line 22) | ShapeTypeQuadratic constant ShapeTypeRotatedEllipse (line 23) | ShapeTypeRotatedEllipse constant ShapeTypePolygon (line 24) | ShapeTypePolygon FILE: primitive/state.go type State (line 3) | type State struct method Energy (line 20) | func (state *State) Energy() float64 { method DoMove (line 27) | func (state *State) DoMove() interface{} { method UndoMove (line 38) | func (state *State) UndoMove(undo interface{}) { method Copy (line 45) | func (state *State) Copy() Annealable { function NewState (line 11) | func NewState(worker *Worker, shape Shape, alpha int) *State { FILE: primitive/triangle.go type Triangle (line 10) | type Triangle struct method Draw (line 30) | func (t *Triangle) Draw(dc *gg.Context, scale float64) { method SVG (line 38) | func (t *Triangle) SVG(attrs string) string { method Copy (line 44) | func (t *Triangle) Copy() Shape { method Mutate (line 49) | func (t *Triangle) Mutate() { method Valid (line 72) | func (t *Triangle) Valid() bool { method Rasterize (line 105) | func (t *Triangle) Rasterize() []Scanline { function NewRandomTriangle (line 17) | func NewRandomTriangle(worker *Worker) *Triangle { function rasterizeTriangle (line 111) | func rasterizeTriangle(x1, y1, x2, y2, x3, y3 int, buf []Scanline) []Sca... function rasterizeTriangleBottom (line 137) | func rasterizeTriangleBottom(x1, y1, x2, y2, x3, y3 int, buf []Scanline)... function rasterizeTriangleTop (line 155) | func rasterizeTriangleTop(x1, y1, x2, y2, x3, y3 int, buf []Scanline) []... FILE: primitive/util.go function LoadImage (line 19) | func LoadImage(path string) (image.Image, error) { function SaveFile (line 34) | func SaveFile(path, contents string) error { function SavePNG (line 49) | func SavePNG(path string, im image.Image) error { function SaveJPG (line 58) | func SaveJPG(path string, im image.Image, quality int) error { function SaveGIF (line 67) | func SaveGIF(path string, frames []image.Image, delay, lastDelay int) er... function SaveGIFImageMagick (line 87) | func SaveGIFImageMagick(path string, frames []image.Image, delay, lastDe... function NumberString (line 111) | func NumberString(x float64) string { function radians (line 122) | func radians(degrees float64) float64 { function degrees (line 126) | func degrees(radians float64) float64 { function clamp (line 130) | func clamp(x, lo, hi float64) float64 { function clampInt (line 140) | func clampInt(x, lo, hi int) int { function minInt (line 150) | func minInt(a, b int) int { function maxInt (line 157) | func maxInt(a, b int) int { function rotate (line 164) | func rotate(x, y, theta float64) (rx, ry float64) { function imageToRGBA (line 170) | func imageToRGBA(src image.Image) *image.RGBA { function copyRGBA (line 176) | func copyRGBA(src *image.RGBA) *image.RGBA { function uniformRGBA (line 182) | func uniformRGBA(r image.Rectangle, c color.Color) *image.RGBA { function AverageImageColor (line 188) | func AverageImageColor(im image.Image) color.NRGBA { FILE: primitive/worker.go type Worker (line 11) | type Worker struct method Init (line 39) | func (worker *Worker) Init(current *image.RGBA, score float64) { method Energy (line 46) | func (worker *Worker) Energy(shape Shape, alpha int) float64 { method BestHillClimbState (line 56) | func (worker *Worker) BestHillClimbState(t ShapeType, a, n, age, m int... method BestRandomState (line 73) | func (worker *Worker) BestRandomState(t ShapeType, a, n int) *State { method RandomState (line 87) | func (worker *Worker) RandomState(t ShapeType, a int) *State { function NewWorker (line 24) | func NewWorker(target *image.RGBA) *Worker { FILE: scripts/html.py function run (line 4) | def run(in_folder, out_folder): function main (line 25) | def main(): FILE: scripts/process.py function makedirs (line 8) | def makedirs(x): function primitive (line 14) | def primitive(i, o, n, a, m): function create_jobs (line 20) | def create_jobs(in_folder, out_folder, n, a, m): function worker (line 36) | def worker(jobs, done): function process (line 43) | def process(in_folder, out_folder, nlist, alist, mlist, nworkers): function log (line 64) | def log(x):