-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #63 from alcarney/develop
New Release v0.6.1
- Loading branch information
Showing
11 changed files
with
487 additions
and
96 deletions.
There are no files selected for viewing
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
{ | ||
"cells": [ | ||
{ | ||
"cell_type": "code", | ||
"execution_count": 37, | ||
"metadata": {}, | ||
"outputs": [], | ||
"source": [ | ||
"from stylo.shape import Square\n", | ||
"from stylo.color import FillColor\n", | ||
"from stylo.domain.transform import translate, rotate\n", | ||
"from stylo.image import SimpleImage\n", | ||
"\n", | ||
"from math import pi\n", | ||
"\n", | ||
"red = FillColor(\"ff0000\")\n", | ||
"\n", | ||
"%matplotlib inline" | ||
] | ||
}, | ||
{ | ||
"cell_type": "code", | ||
"execution_count": 38, | ||
"metadata": {}, | ||
"outputs": [], | ||
"source": [ | ||
"square = Square(0, 0, 0.4) >> translate(-0.4, -0.4) >> rotate(pi/4) " | ||
] | ||
}, | ||
{ | ||
"cell_type": "code", | ||
"execution_count": 39, | ||
"metadata": {}, | ||
"outputs": [ | ||
{ | ||
"data": { | ||
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAQYAAAD8CAYAAACVSwr3AAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAADl0RVh0U29mdHdhcmUAbWF0cGxvdGxpYiB2ZXJzaW9uIDMuMC4wLCBodHRwOi8vbWF0cGxvdGxpYi5vcmcvqO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O3LPJtV4IXNraLwG+CVw8bfW213txa58J3NNe/xbg+tb/CeCPW/tPgE+09vXAzZv87/o+4DPAbW15Wuv8DnD+CX0j+7/ftA05xca9FvjywPINwA0Trmn3CcHwOHBha1/I6jUXAH8PvP1k4yZU963AG6e5XuDXga8Dr2H14pttJ/4dAF8GXtva29q4bFJ9O1n9bpErgNvaRJq6OttrniwYRvZ/P+lDiaFu0Z6wDd1evhnabuyrWX03nrp62+75A6zeaHcHq3uJz1bV8yep5Rd1tvXPAedtRp3AR4D3Az9vy+dNaZ0whq9CGDQtVz7OhKr1314+bkleDHwBeG9V/ajd0wJMT71V9TPgkiTbWb0791UTLqmT5M3Asaq6L8kbJl3PEEb+VQiDJr3HMAu3aE/t7eVJzmQ1FD5dVV9s3VNbb1U9C9zN6i759iTH35gGa/lFnW39S4EfbEJ5rwPekuQ7wOdYPZz46BTWCYz/qxAmHQz3Anvamd+zWD2Jc3jCNZ1oKm8vz+quwU3AY1X14WmtN8lC21MgyYtYPQ/yGKsBcd0p6jxe/3XAXdUOjMepqm6oqp1VtZvVv8O7quod01YnbNJXIWzWyZJfcRLlalbPqH8L+MsJ1/JZ4Gng/1g9DtvH6nHjncATwL8D57axAf6u1f0NYHGTa309q8eZDwEPtMfV01Yv8DvA/a3Oh4G/av2vAL7G6u35/wyc3frPacvLbf0rJvB38AZ++anE1NXZanqwPR45Pm9G+X/vlY+SOpM+lJA0hQwGSR2DQVLHYJDUMRgkdQwGSR2DQVLHYJDU+X9CzhWBY4zbxgAAAABJRU5ErkJggg==\n", | ||
"text/plain": [ | ||
"<Figure size 288x288 with 1 Axes>" | ||
] | ||
}, | ||
"metadata": { | ||
"needs_background": "light" | ||
}, | ||
"output_type": "display_data" | ||
} | ||
], | ||
"source": [ | ||
"image = SimpleImage(square, red)\n", | ||
"image(512, 512);" | ||
] | ||
} | ||
], | ||
"metadata": { | ||
"kernelspec": { | ||
"display_name": "Python 3", | ||
"language": "python", | ||
"name": "python3" | ||
}, | ||
"language_info": { | ||
"codemirror_mode": { | ||
"name": "ipython", | ||
"version": 3 | ||
}, | ||
"file_extension": ".py", | ||
"mimetype": "text/x-python", | ||
"name": "python", | ||
"nbconvert_exporter": "python", | ||
"pygments_lexer": "ipython3", | ||
"version": "3.7.0" | ||
} | ||
}, | ||
"nbformat": 4, | ||
"nbformat_minor": 2 | ||
} |
Oops, something went wrong.