GithubHelp home page GithubHelp logo

Comments (3)

poetaster avatar poetaster commented on August 28, 2024

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.

FoamyGuy avatar FoamyGuy commented on August 28, 2024

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.

poetaster avatar poetaster commented on August 28, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.