---
title: "Simple Dithering Library"
canonical_url: https://developer.repebble.com/community/libraries/simple-dithering-library/
last_updated: 2025-08-08
sdk_version: 4.33.1
---
# Simple Dithering Library

Source: https://developer.repebble.com/community/libraries/simple-dithering-library/

**UPDATE** - _June 17, 2015_

## Now supports the full range of RGB colors (255x255x255)! Check out [this forum post](https://forums.getpebble.com/discussion/comment/144191/#Comment_144191) for more info.

This library provides easy functions for creating dithered rectangles and circles, using either random or ordered dithering.

![](https://camo.githubusercontent.com/22eff63e7c2cd377f51b9348fef2d86ac7177c58/687474703a2f2f63643862613062343461313563313030363566642d32343436316633393165323062373333363333316435373839303738616635332e7232332e6366312e7261636b63646e2e636f6d2f706562626c652e76616e696c6c61666f72756d732e636f6d2f656469746f722f73352f31623432786c3773656d65372e676966) ![](https://camo.githubusercontent.com/a97a768b6177020d2a9edc1f7fce2109230d5c88/687474703a2f2f63643862613062343461313563313030363566642d32343436316633393165323062373333363333316435373839303738616635332e7232332e6366312e7261636b63646e2e636f6d2f706562626c652e76616e696c6c61666f72756d732e636f6d2f656469746f722f6a652f717a717a763533733862326c2e706e67)

By using 50% dithering, developers are able to combine every color available in Basalt, resulting in a new color palette of about 343 different colors. This is possible since 50% dithering is so small that the human eye perceives this as a single color.

![](http://cd8ba0b44a15c10065fd-24461f391e20b7336331d5789078af53.r23.cf1.rackcdn.com/pebble.vanillaforums.com/editor/3g/fzivcubrgeod.png)

There are also functions for creating gradients, as well as animated transitions between two colors.

![](https://camo.githubusercontent.com/d768dc60336faf9902925e7741526dabc31dd288/687474703a2f2f63643862613062343461313563313030363566642d32343436316633393165323062373333363333316435373839303738616635332e7232332e6366312e7261636b63646e2e636f6d2f706562626c652e76616e696c6c61666f72756d732e636f6d2f656469746f722f756a2f6a78627775636f6b39357a732e676966)
