---
title: "Sphero SPRK app-store screenshot promoting the text-based OVAL code…"
description: "App store screenshot titled Text-Based Code Viewer showing an iPhone displaying OVAL CODE with syntax-highlighted robot code"
kind: "ui-screenshot"
source: "SPRK+"
image: "https://kellyny.land/creative-assets/sprk/sprk-text-based-code.png"
url: "https://kellyny.land/media/sprk-sprk-text-based-code"
---

# Sphero SPRK app-store screenshot promoting the text-based OVAL code…

_Sphero SPRK app-store screenshot promoting the text-based OVAL code viewer that reveals the code behind block-built programs._

![App store screenshot titled Text-Based Code Viewer showing an iPhone displaying OVAL CODE with syntax-highlighted robot code](https://kellyny.land/creative-assets/sprk/sprk-text-based-code.png)

## Text in this image

Transcribed from the asset and checked against the record. Figures are reproduced as printed.

```
Text-Based Code Viewer
OVAL CODE
void HandleFreeFall()
{
  setRgbLed( 255,22,21 );
}
OnFreeFall = HandleFreeFall;
yield StartProgram()
{
  int loopCount_988 = 0;
  while (loopCount_988 < 10000)
  {
    loopCount_988 = loopCount_988 + 1;
    if ( verticalAcceleration>=2 )
    {
      setRgbLed( 255,0,0 );
      yield DoDelay( 250 );
    }
    else
    {
      if ( verticalAcceleration<=-2 )
      {
        setRgbLed( 255,255,0 );
        yield DoDelay( 250 );
      }
      else
      {
        setRgbLed( 255,255,255 );
      }
      yield DoDelay( 50 );
      controlSystemTargetSpeed = (69 + 8);
    }
  }
  controlSystemTargetYaw = controlSystemTa...
}
yield StartProgram();
```

## Provenance

- **Source:** SPRK+ — https://kellyny.land/work/sprk
- **File:** https://kellyny.land/creative-assets/sprk/sprk-text-based-code.png
- **Description:** App store screenshot titled Text-Based Code Viewer showing an iPhone displaying OVAL CODE with syntax-highlighted robot code


---
[View on kellyny.land](https://kellyny.land/media/sprk-sprk-text-based-code)