# FT800 Stencil operations

**URL:** <https://forum.arduino.cc/t/ft800-stencil-operations/938314>\
**Category:** Displays\
**Created:** [December 22, 2021, 4:36am UTC](https://forum.arduino.cc/t/ft800-stencil-operations/938314 "2021-12-22T04:36:19Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![justdaveiii](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/justdaveiii/32/1126465_2.png) [@justdaveiii](https://forum.arduino.cc/u/justdaveiii)\
**Post date:** [December 22, 2021, 4:36am UTC](https://forum.arduino.cc/t/ft800-stencil-operations/938314/1 "2021-12-22T04:36:19Z")

</div>

Does anyone have a guide to Stencil operations for the FT800 display list controller?

The limited documentation in the FT800 Programmers guide isn't cutting it.

I would like to use Stencil to limit the drawing area, much like a Region does (in other systems) so that when I print text to the display, what shows up is only the part in the region and anything else is not shown. That way I can have a scrolling bar graph and when the tic mark labels scroll out of view they get steadily disappear vs suddenly (all there or all gone) disappear .

---

<div class="post-metadata">

**Author:** ![TFTLCDCyg](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/tftlcdcyg/32/601489_2.png) [@TFTLCDCyg](https://forum.arduino.cc/u/TFTLCDCyg)\
**Post date:** [December 22, 2021, 1:13pm UTC](https://forum.arduino.cc/t/ft800-stencil-operations/938314/2 "2021-12-22T13:13:46Z")

</div>

Do you have an example of the result you want to see on the FT800?

What library do you plan to use?

---

<div class="post-metadata">

**Author:** ![cherk](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/cherk/32/217875_2.png) [@cherk](https://forum.arduino.cc/u/cherk)\
**Post date:** [December 23, 2021, 12:13am UTC](https://forum.arduino.cc/t/ft800-stencil-operations/938314/3 "2021-12-23T00:13:01Z")

</div>

You may find some help in the Gameduino documentation.😕

---

<div class="post-metadata">

**Author:** ![justdaveiii](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/justdaveiii/32/1126465_2.png) [@justdaveiii](https://forum.arduino.cc/u/justdaveiii)\
**Post date:** [December 23, 2021, 6:46pm UTC](https://forum.arduino.cc/t/ft800-stencil-operations/938314/4 "2021-12-23T18:46:53Z")

</div>

> [@cherk](#):
>
> Gameduino documentation

Looked at it. Very little info.

Imagine a tape measure. It has numbers and tic marks. Now unroll it and put it behind a window. It is wider than the window.

As you move the tape, the tics and numbers move. When the numbers intersect the edge of the window they slowly disappear. They are clipped to the window region.

Now I can clip the tics myself (they are single vertical lines) but the numbers are either drawn or not to the area of the screen I want them limited to. I cannot draw only 1/2 (or any fraction) a character as I scroll the tape.

I cannot over draw on the number to clip it as the background is dynamic.

So that's what I am thinking that using a Stencil can do for me. But the lack of decent documentation and only one simple snippet of example code leaves me cold.

---

<div class="post-metadata">

**Author:** ![justdaveiii](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/justdaveiii/32/1126465_2.png) [@justdaveiii](https://forum.arduino.cc/u/justdaveiii)\
**Post date:** [December 25, 2021, 12:42am UTC](https://forum.arduino.cc/t/ft800-stencil-operations/938314/5 "2021-12-25T00:42:50Z")

</div>

Quite by accident, I have found that the Scissors functions are what I need. Scissors (ScissorXY , ScissorSize) sets a rectangle region, which then limits actual drawing to that area. Anything outside that region gets clipped and not shown.

Once again, and hopefully I'm not coming across as mean, decent documentation would have saved me hours.

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/system/32/1140315_2.png) [@system](https://forum.arduino.cc/u/system)\
**Post date:** [June 23, 2022, 12:43am UTC](https://forum.arduino.cc/t/ft800-stencil-operations/938314/6 "2022-06-23T00:43:29Z")

</div>

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.
