Giter VIP home page Giter VIP logo

woopecgraphics's Introduction

Hi there

  • ๐Ÿ˜„ I'm Frank Kruse
  • ๐Ÿ”ญ Iโ€™m currently working on Woopec C# Turtle Graphics (Github Repo)
  • ๐ŸŒฑ Iโ€™m currently trying to learn more about Microsoft Fabric
  • ๐Ÿ‘ฏ Iโ€™m looking to collaborate on teaching kids learning C#
  • ๐Ÿค” Iโ€™m looking for help to make Woopec C# Turtle Graphics better known
  • ๐Ÿ’ฌ I'm blogging here: https://frank.woopec.net/
  • ๐Ÿฆฃ I'm tooting on Mastodon
  • ๐Ÿ“ซ How to reach me: https://frank.woopec.net/about.html
  • โšก Helps: "..., grant me the serenity to accept the things I cannot change, the courage to change the things I can, and the wisdom to know the difference."

woopecgraphics's People

Contributors

frankfk avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

woopecgraphics's Issues

Add alpha channel to Color

As a beginner who wants to write a spirograph program I want to draw a wheel-shape that is transparent, such that the user can see the Spirograph plot which is drawn behind the wheel.

Solution: Windows Colors provide a fourth alpha channel value, which is made for this.

Implement Input-function

User Story

As a C# beginner I want to a Turtle command that makes it possible for a user to input a text. I need this for my first computer game I want to code with woopec

Solution

Implement something like the textinput and numinput functions in python-turtle

change coordinate system

As a programming-beginner it is sometimes hard for me to work with the default coordinate system, where the point 0,0 is in the middle of the screen. Therefore: As a programming-beginner I want to specify the coordinates of the corners of the screen.

Solution: Implement something like python's turtle.setworldcoordinates

Make Debugging easier (solution: two processes in debug-mode)

Problem

If the user has written a woopec-program and tries to debug it, the behaviour is not as excpected. For Instance:

  • Program has one line of code turte.Forward(100)
  • The user puts a breakpoint on this line, starts the debugger, the debugger stops at the breakpoint, the user executes debug-step over.
  • The user expects to see the turtle moving 100 pixels
  • But nothing happens.

The reason for this: The movement is implemented with an WPF-animation, which runs in a second thread. Because of debugging this second thread is stopped and the animation is not started.

Solution

In Debug-mode: Start two processes:

  • One process executes the turtle commands and can debugged by the user. (This process only uses .NET 6)
  • In background start a second process, that draws the woopec-commands on screen. (This process uses WPF).

Create a new shape

As a turtle-developer I want to use turtle commands to create a new shape. For instance: I would like to draw a hexagon with turtle commands. Then I want to transform this hexagon into a shape. And after that I want to create a new "turtle", that has this hexagon shape.

Solution: New methods similar to python-turtle BeginPoly, EndPoly.

Make woopec usable on Linux and MacOS

Problem

At the moment woopec consists of two parts:

  • Woopec.core: Contains all Turtle-Commands, is written with .NET 6, therefore usable on Windows, Linux, Max.
  • Woopec.wpf: This is the viewer-part of woopec that show the turtle-graphics. Woopec.Wpf is implemented with WPF. Therefore it is only usable an Windows Computers.

Because of this, at the moment Woopec is only usable on Windows-Computers.

Solution Ideas

  • AvaloniaUI
  • Blazor
  • JavaScript and SignalR

Important use cases

The example Woopec.Core.Examples.FeaturesDemo.Run(); contains many features of Woopec. If this example behaves on Linux and MacOS in the same way as it behaves on Windows with WPF (TurtleWpf), a great deal has been achieved.

To make debugging of Woopec programs easier for novice programmers, there is a little magic for this. Details can be found in file .\TurtleCore\InternalDocumentation\003_TwoProcessesForBetterDebugging.md. It is important that this also works on MaxOS and Linux.

Effort

Multiple Days

Stamp with turtle shape

As a turtle-user I want to use the acutal turtle as a "stamp" which stamps the acutal shape of the turtle on the screen. For instance: The turtle has a hexgon-shape. I can move the turtle to a point on screen and stamp the hexagon to this point on screen.

Solution: Methods similar to python turtle's Stamp and ClearStamp methods

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.