Comments (3)
Ah, I think I should be looking at:
self._splash.append(self._bg_addon_group)
using the addon group? I have a set of onscreen controls that I want to hide and show between drawing (L-Systems) ...
from adafruit_circuitpython_turtle.
Are you trying to have the turtle drawing appear on top of your other group? Or are you intending to sometimes show your other group, and other times show the turtle drawing?
the code you have now:
self._splash.append(self._bg_addon_group)
would put your addon group on top of the drawing I believe which could cover it up depending on what the turtle has drawn.
If you are intending to show one or the other and switch back and forth instead of adding your other group to self._splash
you'd want to just show your other group with board.DISPLAY.root_group = bg_addon_group
and then switch back to the turtle drawing with board.DISPLAY.root_group = turtle._splash
from adafruit_circuitpython_turtle.
Ok, I had the draw in foreground working with turtle._bg_addon_group.append(mysplash)
but the root_group approach could come in handy. I should just have read the turtle driver code init first :) Thanks for your efforts.
from adafruit_circuitpython_turtle.
Related Issues (12)
- Future example or project
- Add to CircuitPython RTD HOT 2
- internal time.sleep(0.003) hacks are required but limit speed HOT 5
- Can not specify external display HOT 1
- pos() not working as expected? HOT 5
- 'Vec2D' object is not subscriptable HOT 1
- Pylint: assignment-from-no-return HOT 1
- Missing Type Annotations HOT 4
- turtle constructor incompatible with CPython: tuple expected at most 1 argument, got 2 HOT 10
- Drawing shapes requires degrees mode
- Convert .show() to .root_group = for CircuitPython 9 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from adafruit_circuitpython_turtle.