# \#racketdraw

**URL:** https://racket.discourse.group/tag/racketdraw/37.md

[Latest](https://racket.discourse.group/latest.md) · [Categories](https://racket.discourse.group/categories.md) · [Tags](https://racket.discourse.group/tags.md)

---

## [TIL how to convert hex triplet to \`racket/draw\` color](https://racket.discourse.group/t/til-how-to-convert-hex-triplet-to-racket-draw-color/3979)

<div class="topic-metadata">

**Author:** [@spdegabrielle](https://racket.discourse.group/u/spdegabrielle)\
**Replies:** 0\
**Last updated:** [October 21, 2025, 1:11pm UTC](https://racket.discourse.group/t/til-how-to-convert-hex-triplet-to-racket-draw-color/3979 "2025-10-21T13:11:45Z")

</div>

TIL how to convert a hex triplet to racket/draw color ;; Convert hex triplet to \`racket/draw\` color ;; hex-triplet-\>color% : hex -\> colour% (define (hex-triplet-\>color% x) (define-values \[r g b\] (values (arithmeti…

---

## [Different rendering when using image-snip and pict](https://racket.discourse.group/t/different-rendering-when-using-image-snip-and-pict/3878)

<div class="topic-metadata">

**Author:** [@spdegabrielle](https://racket.discourse.group/u/spdegabrielle)\
**Replies:** 1\
**Last updated:** [July 27, 2025, 10:11pm UTC](https://racket.discourse.group/t/different-rendering-when-using-image-snip-and-pict/3878 "2025-07-27T22:11:09Z")

</div>

Hi, I'm getting different rendering when I use image-snip% compared to pict's dc. I think the difference is the rendering is assuming a different resolution display but I am not entirely sure. I've included a simple d…

---

## [What kind of spline does \`draw-spline\` draw?](https://racket.discourse.group/t/what-kind-of-spline-does-draw-spline-draw/1231)

<div class="topic-metadata">

**Author:** [@benknoble](https://racket.discourse.group/u/benknoble)\
**Replies:** 8\
**Last updated:** [August 16, 2022, 7:23pm UTC](https://racket.discourse.group/t/what-kind-of-spline-does-draw-spline-draw/1231 "2022-08-16T19:23:03Z")

</div>

Alternately: how can I convert points that I liked with draw-spline to points consistent with curve-to? I'm working on drawing some fire with racket/draw + pict (using the dc constructor for picts). Once I get the right…

---

## [How to safely cast a \_pointer to \_bytes?](https://racket.discourse.group/t/how-to-safely-cast-a-pointer-to-bytes/364)

<div class="topic-metadata">

**Author:** [@kurinoku](https://racket.discourse.group/u/kurinoku)\
**Replies:** 6\
**Last updated:** [December 6, 2021, 7:26pm UTC](https://racket.discourse.group/t/how-to-safely-cast-a-pointer-to-bytes/364 "2021-12-06T19:26:07Z")

</div>

I'm using racket/draw/unsafe/cairo and a custom ffi for MagickWand C API. I have this definition, you can see the last parameter is \_bytes. (define-mwand MagickExportImagePixels (\_fun \_MagickWand-pointer \_size \_size \_s…
