This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! | |
# render with drawbot | |
# forked from https://gist.github.com/justvanrossum/bde7e9b5ae5f9b67dd52 | |
canvas = 512 # canvas size | |
sq_size = 32 # square size | |
sq_num = 32 # number of squares | |
sq_dist = 24 # distance between squares | |
# used to center the object | |
width = sq_num * sq_dist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# fork of -- https://gist.github.com/justvanrossum/19cf56af4ccb2477a868 | |
# from http://dailydrawbot.tumblr.com/ | |
#rendered with drawbot | |
# FREQUENCY = 1 | |
# http://dailydrawbot.tumblr.com/post/135252661206/the-blob | |
# FREQUENCY = 2 | |
# http://dailydrawbot.tumblr.com/post/135266061309/the-blob-2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Daily Python Kata | |
# 01/02/16 -- 002 | |
canvas = 2**9 | |
count = 1 | |
frame_count = 50 | |
for i in range(frame_count): | |
newPage(canvas, canvas) | |
frameDuration(1/20) | |
image("ss.png", (0, 0)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Eli Heuer's daily DrawBot exercise! | |
# 01/19/16 -- 001 | |
# Rendered with DrawBot: | |
# http://www.drawbot.com/ | |
# This code started from this tutorial screencast: | |
# https://vimeo.com/149247423 | |
# Thanks to Just van Rossum | |
# setting up the canvas and main variables |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Eli Heuer's daily DrawBot exercise! | |
# 01/21/16 -- 001 | |
# Rendered with DrawBot: | |
# http://www.drawbot.com/ | |
# setting up the canvas and main variables | |
canvas = 512 # size of the gif in pixels | |
square_size = 128 # size of the square | |
num_frames = 64 # number of frames in the animation |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# GIF file rendered with DrawBot: http://www.drawbot.com/ | |
import math | |
import itertools | |
# static variables | |
canvas = 512 | |
num_frames = 60 | |
# gird variables |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from drawBot import * | |
print installedFonts() | |
# set the path to a font file | |
path = "/Users/name/drawbot/font.otf" | |
fontName = installFont(path) | |
canvas = 512 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import bpy | |
import random | |
import math | |
scene = bpy.context.scene | |
# add metaball object | |
mball = bpy.data.metaballs.new("MetaBall") | |
obj = bpy.data.objects.new("MetaBallObject", mball) | |
step = 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import bpy | |
import random | |
import math | |
scene = bpy.context.scene | |
# add metaball object | |
mball = bpy.data.metaballs.new("MetaBall") | |
obj = bpy.data.objects.new("MetaBallObject", mball) | |
step = 1.2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import bpy | |
import math | |
scene = bpy.context.scene | |
# add metaball object | |
mball = bpy.data.metaballs.new("MetaBall") | |
obj = bpy.data.objects.new("MetaBallObject", mball) | |
step = 0 | |
pull = 0 |
OlderNewer