GithubHelp home page GithubHelp logo

svg_play's Introduction

Just call me Hoges!

Twitter Follow Mastodon link YouTube Channel Views GitHub followers

I used to work in IT and then retrained as a teacher and haven't regretted it for a second. I teach computers and technology to all high school years from 7-12. The best thing about my job is that I get to play with robots and computer games and call it work. I'm going to start that textbook any day now.

πŸ‘¨πŸ»β€πŸ’» Β About Me

  • πŸŽ“ Β  Computer Science teacher at St Andrew's Cathedral School Sydney
  • ✍️ Β  Gonna write that textbook tomorrow
  • πŸ”­ I’m currently working on trying to break down difficult concepts for teenage minds
  • πŸ’¬ Ask me about generative art
  • 🚲 I like going fast on my bike

πŸ“– My portfolio!

πŸ›  Β Tech Stack

  • πŸ’» Python Flask

  • 🌐 HTML5 CSS JavaScript

  • βš™οΈ Β  Git GitHub Markdown

  • πŸ›’ Β  SQLite MongoDB SQL Server

  • πŸ”§ Β  Visual Studio Code Replit

  • πŸ–₯ Β  Figma Illustrator Photoshop InDesign

My stats from githubMy stats from github

πŸ† Trophies!

trophy

⭐️ From hogesonline

svg_play's People

Contributors

hogesonline avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

svg_play's Issues

arcs.py - simple fix

Hi Amanda,

I think the issue you had with this might be a simple fix...

line 29
n = random.randint(0,4) should be=> n = random.randint(0,3)

I've been playing around with your SVG ideas this week, I might have a fun little app (all Python) to share with you.
Pete

Corrections and a Jupyter notebook

Hi,
thanks for your programs. They are fun and interesting.

I noted some small problems:

a_bit_mondrian.py
Running it in python 3 gives an error in the random.choice function because colors is an iterable and not a list.
By changing line 14 to:
colors = list(color_nums.keys())
the problem is resolved.

double_pendulum.py
1- the PATH directive is not terminated properly which gives an XML error.
to correct simply change line 116 from:
path+= '" style="fill-opacity: 0; stroke-width: 2; stroke: green; filter: url(#glow);"'
to
path+= '" style="fill-opacity: 0; stroke-width: 2; stroke: green; filter: url(#glow);" />'

2- the filter is not applied because the tags in the filter definition are in lowercase instead of camelcase:
fegaussianblur must be change to feGaussianBlur
stddeviation to stdDeviation
femerge to feMerge
femergenode to feMergeNode

Funny thing, the lowercase tags works in a Jupyter notebook.

Speaking of Jupyter notebook, I put all your programs in a single Jupyter notebook to facilitate experimentation.
I included the notebook and a sample pdf file in the attached files.

sample.pdf
svg_play_notebook.zip

convert to python 3

 python 'a_bit_mondrian.py'
<svg viewBox="0 0 500 500" xmlns="http://www.w3.org/2000/svg">

Traceback (most recent call last):
  File "a_bit_mondrian.py", line 37, in <module>
    draw_mondrian(500, 500, COLORNUMS)
  File "a_bit_mondrian.py", line 18, in draw_mondrian
    col = random.choice(colors)
  File "/usr/lib/python3.6/random.py", line 261, in choice
    return seq[i]
TypeError: 'dict_keys' object does not support indexing

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.