openframeworks / openframeworks/openFrameworks

quadBezierTo is confusing and should only take 2 parameters (ofPath, ofPolyline)

Open
#6,342 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C++
Stars
10.4k
Forks
2.6k
Avg merge
1d 21h
Merged PRs (30d)
9

Description

Currently, to get the "expected" behavior, you must manually set the first control point to the previous command's to point. I propose deprecating the current 3 parameter quadBezierTo and replacing it with a 2 parameter quadBezier(controlPoint, ToPoint).

This is how processing's quadraticVertex() method works. This also happens to be how we use it in ofTrueTypeFont.

https://github.com/openframeworks/openFrameworks/blob/2c036d023e7d6552afd7438a2fd33c87c5a47461/libs/openFrameworks/graphics/ofTrueTypeFont.cpp#L194

Shall I make a PR?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the quadBezierTo API and the referenced libs/openFrameworks/graphics/ofTrueTypeFont.cpp usage. Trace how the current three-parameter form is called and determine the scope of deprecation and replacement. Done means the intended two-parameter behavior and migration path are agreed and consistently represented.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
computer-graphics
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.