Editing a Project

On this page, you edit the project you created on the previous page.

1. Edit the Project to change the Shape.

With your text editor, edit the project file my_lights.yml.

Go to the line that says: shape: [32, 48] and change it to say shape: [96, 16] and run the Project again. You should see this:

Result

Press control-c to stop the bp program when you’re ready to move on - you’ll need to do this for each step on this page.

Now change that line to say: shape: [48, 24] and run the Project again. You should see this:

Result

2. Change the Animation

Go to the line that says: animation: $bpa.matrix.bloom and change it to say animation: $bpa.matrix.SpinningTriangle and run it again. You get this:

Result

Now, let’s try a sequence.

Delete that line animation: $bpa.SpinningTriangle

Go down a little to around line 48, and uncomment all those lines by removing the first two characters from each line, so it looks like this:

animation:
  typename: sequence
  length: 2
  animations:
    - $bpa.bloom
    - $bpa.pinwheel
    - $bpa.GameOfLife.GameOfLifeRGB
    - $bpa.SpinningTriangle

Run it again. You should see a series of four animations, each running for ten seconds, like this:

Result