# Animation

**URL:** <https://forum.makecode.com/t/animation/2350>\
**Category:** micro:bit\
**Created:** [June 9, 2020, 12:45pm UTC](https://forum.makecode.com/t/animation/2350 "2020-06-09T12:45:52Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![KeveZeer](https://avatars.discourse-cdn.com/v4/letter/k/d07c76/32.png) [@KeveZeer](https://forum.makecode.com/u/KeveZeer)\
**Post date:** [June 9, 2020, 12:45pm UTC](https://forum.makecode.com/t/animation/2350/1 "2020-06-09T12:45:53Z")

</div>

/\*\*

- Animation blocks

\*/

//% weight=100 color=#27a186 icon=“☀”

namespace animation {

```
/**

 * Run The Flashing Heart Code

 */

//% blockId=animationflashingheart

//% block="Flashing Heart"

 export function flashingHeart(): void {

    basic.showLeds(`

    . # . # .

    # # # # #

    # # # # #

    . # # # .

    . . # . .

    `)

    basic.showLeds(`

    . . . . .

    . . . . .

    . . . . .

    . . . . .

    . . . . .

    `)

}

```

}

namespace animation {

```
/**

 * Animate Nyan Cat

 */

//% blockId=animationnyancat

//% block="Nyan Cat"

export function nyanCat(): void {

    basic.showLeds(`

    . . . # .

    . . . # #

    # # # # #

    # # # # .

    . # . # .

    `)

    basic.showLeds(`

    . . . # .

    . . . # #

    . # # # #

    # # # # .

    # # . # .

    `)

}

```

}

namespace animation {

```
/**

 * Show 3 Faces

 */

//% blockId=animationsmileys

//% block="Faces"

export function faces(): void{

    basic.showLeds(`

    . . . . .

    . # . # .

    . . . . .

    # . . . #

    . # # # .

    `)

    basic.showLeds(`

    . . . . .

    . # . # .

    . . . . .

    . # # # .

    . . . . .

    `)

    basic.showLeds(`

    . . . . .

    . # . # .

    . . . . .

    . # # # .

    # . . . #

    `)

}

```

}

namespace animation {

```
/**

 * Animate Diamonds

 */

//% blockId=animationdiamonds

//% block="Diamonds"

export function diamonds(): void{

    basic.showLeds(`

    . . # . .

    . # # # .

    # # # # #

    . # # # .

    . . # . .

    `)

    basic.showLeds(`

    . . . . .

    . . # . .

    . # # # .

    . . # . .

    . . . . .

    `)

}

```

}
