• Home
  • Tutorials
    • Learn C Basics
      • Learning C for the Pebble SDK
      • A Simple C Program
      • Hello, Pebble!
      • More C Concepts
    • Create a C Watchface
      • Build Your Own Watchface
      • Customize Your Watchface
      • Adding Content From The Web
    • Create a JS Watchapp
      • Build A Watchapp with Pebble.js
      • Expanded Weather Forecasts
      • Adding More Details
    • Add More Features
      • Add a Date View
      • Add a Battery Meter
      • Add Connection Alerts
    • Go Beyond
      • Vector Animations
    • PebbleKit Android Tutorial
      • Integrating with Android
      • Controlling Apps From Pebble
      • Rock, Paper, Scissors with Pebble
    • PebbleKit iOS Tutorial
      • Integrating with iOS
      • Controlling Apps From Pebble
      • Rock, Paper, Scissors with Pebble
  • Get the SDK
  • Guides
    • App Resources
      • Animated Images
      • App Assets
      • Converting SVG to PDC
      • Fonts
      • Images
      • Pebble Draw Command File Format
      • Platform-specific Resources
      • Raw Data Files
      • System Fonts
    • Appstore Publishing
      • Appstore Analytics
      • Appstore Assets
      • Preparing a Submission
      • Publishing an App
      • iOS App Whitelisting
    • Best Practices
      • Building for Every Pebble
      • Conserving Battery Life
      • Modular App Architecture
    • Communication
      • Advanced Communication
      • Datalogging
      • Sending and Receiving Data
      • PebbleKit Android
      • PebbleKit iOS
      • PebbleKit JS
      • Sports API
    • Debugging
      • Common Runtime Errors
      • Common Syntax Errors
      • Debugging with App Logs
      • Debugging with GDB
    • Design and Interaction
      • Benefits of Design Guidelines
      • Core Experience Design
      • Example Implementations
      • Round App Design
      • One Click Actions
      • Recommended Guidelines and Patterns
    • Events and Services
      • Accelerometer
      • Background Worker
      • Buttons
      • Compass
      • Dictation
      • Event Services
      • Pebble Health
      • Heart Rate Monitor
      • Persistent Storage
      • Wakeups
    • Graphics and Animations
      • Animations
      • Drawing Primitives, Images and Text
      • Framebuffer Graphics
      • Vector Graphics
    • Migrating Older Apps
      • SDK 3.x on Aplite Migration Guide
      • SDK 3.x Migration Guide
      • SDK 4.x Migration Guide
      • SDK 2.x Migration Guide
      • PebbleKit iOS 3.0 Migration Guide
    • Pebble Packages
      • Creating Pebble Packages
      • Using Pebble Packages
    • Pebble Timeline
      • Creating Pins
      • Service Architecture
      • Managing Subscriptions
      • Libraries for Pushing Pins
      • Public Web API
    • Rocky.js
      • Rocky.js Overview
    • Smartstraps
      • Hardware Specification
      • Protocol Specification
      • Talking To Pebble
      • Talking To Smartstraps
    • Tools and Resources
      • App Metadata
      • Color Picker Tool
      • Developer Connection
      • Hardware Information
      • Internationalization
      • Command Line Tool
    • User Interfaces
      • App Configuration
      • App Exit Reason
      • AppGlance C API
      • AppGlance in PebbleKit JS
      • AppGlance REST API
      • Content Size
      • Layers
      • Round App UI
      • Unobstructed Area
  • Documentation
    • Pebble C
      • Foundation
        • App
        • App Communication
        • App Glance
        • AppMessage
        • AppSync
        • AppWorker
        • DataLogging
        • DataStructures
          • UUID
        • Dictation
        • Dictionary
        • Event Service
          • AccelerometerService
          • AppFocusService
          • BatteryStateService
          • CompassService
          • ConnectionService
          • HealthService
          • TickTimerService
        • Exit Reason
        • Internationalization
        • Launch Reason
        • Logging
        • Math
        • Memory Management
        • Platform
        • Resources
          • File Formats
        • Rocky
        • Storage
        • Timer
        • Wakeup
        • Wall Time
        • WatchInfo
      • Graphics
        • Draw Commands
        • Drawing Paths
        • Drawing Primitives
        • Drawing Text
        • Fonts
        • Graphics Context
        • Graphics Types
          • Color Definitions
      • User Interface
        • Animation
          • PropertyAnimation
        • Clicks
        • Layers
          • ActionBarLayer
          • BitmapLayer
          • MenuLayer
          • RotBitmapLayer
          • ScrollLayer
          • SimpleMenuLayer
          • StatusBarLayer
          • TextLayer
        • Light
        • Preferences
        • UnobstructedArea
        • Vibes
        • Window
          • ActionMenu
          • NumberWindow
        • Window Stack
      • Standard C
        • Format
        • Locale
        • Math
        • Memory
        • String
        • Time
    • Pebble JavaScript API
      • CanvasRenderingContext2D
        • TextMetrics
        • fillStyle
        • Canvas
        • strokeStyle
        • canvas
        • lineWidth
        • font
        • textAlign
        • clearRect
        • fillRect
        • strokeRect
        • fillText
        • measureText
        • beginPath
        • closePath
        • moveTo
        • lineTo
        • arc
        • rect
        • fill
        • stroke
        • save
        • restore
        • rockyFillRadial
      • console
        • log
        • warn
        • error
      • Date
        • toLocaleString
        • toLocaleTimeString
        • toLocaleDateString
      • rocky
        • RockyPostMessageErrorCallback
        • RockyPostMessageConnectedCallback
        • WatchInfo
        • watchInfo
        • RockyMemoryPressureCallback
        • RockyPostMessageDisconnectedCallback
        • UserPreferences
        • RockyDrawCallback
        • RockyMessageCallback
        • RockyTickCallback
        • userPreferences
        • on
        • addEventListener
        • removeEventListener
        • off
        • postMessage
        • requestDraw
    • PebbleKit JavaScript
    • PebbleKit iOS
    • PebbleKit Android
  • Examples
  • Community
    • Events
      • Developer Retreat 2014
      • Developer Retreat 2015
    • Online Communities
    • Example Apps
      • Hello
      • Caltrain
      • HeroBoard
      • Multi Timer
      • Resistor Time
    • Tools
      • App Message Bridge
      • Appstore Badge Generator
      • GPath.svg
      • pBuild Travis CI Build Tool
      • Sublime Text Plugin
      • Watchface Generator
      • Watch Status
    • Libraries
      • Color Selector
      • Custom Status Bar for Pebble
      • EffectLayer
      • GBitmap Colour Palette Manipulator
      • Java Pebble Timeline
      • JS Message Queue
      • Pebble Timeline API for DotNet (C#)
      • Pebble API PHP
      • PebbleTimeline API Ruby
      • PHPebbleTimeline
      • PinPusher
      • pypebbleapi
      • Simple Dithering Library
      • T3 Keyboard
      • ToastLayer Library
  • Blog
  • More
    • Examples
    • App Inspiration
    • Contact
    • Build Tools