commercialnomad.blogg.se

Peter luget plotter drawing 1965 programming
Peter luget plotter drawing 1965 programming













  1. #Peter luget plotter drawing 1965 programming how to#
  2. #Peter luget plotter drawing 1965 programming install#
  3. #Peter luget plotter drawing 1965 programming code#
  4. #Peter luget plotter drawing 1965 programming windows#

Notice how some of these (like the second one) have an element of randomness to them. Here’s some cool stuff that people have drawn with an AxiDraw: If your program draws stuff within the bounds of the demo window, that stuff’ll appear on the plotter’s piece of paper if your program tries to go outside the window, that’ll make the plotter try to draw stuff outside of the piece of paper, and that’s no good because then there’ll be ink all over the table. Don’t resize the window - you can move it around on your screen, just don’t change its size. The window is a particular size, and I did that on purpose: make sure that your program doesn’t draw stuff outside the bounds of that window, or otherwise it won’t get drawn on the plotter’s piece of paper. When you run a program that uses this library, you’ll see a window appear on your screen, and it’ll draw a preview of what your program would do on the plotter. You can probably ignore get_position(), get_y(), and get_x(), but I bet you’ll use all of the other ones. Read the whole page, there aren’t very many functions. This page has a list of all of the functions that the library gives you. This will feel very familiar from previous assignments. # Be sure to call cleanup() at the end of your program.Ĭontrolling the plotter is a lot like controlling a turtle - the library gives you access to functions like turn_right(45), turn_left(90), move_forward(100), etc. # make the pen touch the paper, and go forward a little. # Move to the middle of the page, point to the right, # Remember: you MUST call initialize() at the start of your program. In a new IDLE file, start by importing the AxiDraw library at the top of your code, like this:Īfter that, you can call functions from the library like this: NOTE: You should call initialize() at the start of your program and cleanup() at the end of it.

peter luget plotter drawing 1965 programming

#Peter luget plotter drawing 1965 programming install#

Once you install the library, you’ll need to close IDLE entirely and then open it back up again, it won’t be able to find the library until you do this.

peter luget plotter drawing 1965 programming

If you don’t include the -user in there, it won’t work, because you don’t have administrator access on these computers. Notice that this is slightly different from what the QuickStart page says. NOTE: In order to install the library on your classroom computer, you’ll need to run pip install -user madison_axi at the command line.

#Peter luget plotter drawing 1965 programming windows#

NOTE: To access the command line on your classroom computer, click the Windows icon on the bottom-left of the screen and type cmd, then click Command Prompt. There are some more example programs if you want to read those too - spiky_circle.py is my favorite, try running it on your computer later on once you’re all set up. Read the example program on that page and make sure you understand it. Start by reading the library’s QuickStart guide. When you run your program on your computer, it’ll draw a preview of what you can expect to see on the plotter once that preview looks the way you want it to, you can submit your program to us and we’ll run it on the plotter for you.

#Peter luget plotter drawing 1965 programming code#

I’ve written a library called madison_axi that’ll let you write Python code to control our classroom’s plotter. If you’ve used the WaterColorBot, this is a lot like that - except it’s simpler, because you don’t have to worry about writing code to wash the brush and dip it in different kinds of paint! Getting Started The basic idea is that the device holds a pen, we put a piece of paper under the pen, and you write a computer program that tells the plotter to move the pen around so that it draws stuff on the piece of paper.

peter luget plotter drawing 1965 programming

The particular pen plotter we’ll be using is called an AxiDraw, and it looks like this: What’s a pen plotter?Ī pen plotter is an electronic gadget that holds a pen and draws stuff with it.

#Peter luget plotter drawing 1965 programming how to#

In this project, you’ll learn how to install and use a Python library to write a program that generates cool art that can be drawn on a pen plotter. Madison CS 3-4: Generated Art with a Pen Plotter















Peter luget plotter drawing 1965 programming