evanw / evanw/glfx.js

Blurring subimage

Open
#2 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
3.5k
Forks
406
PR merge metrics
No merged PRs in 30d

Description

Ever considered making your effects work on a portion of an image?

Your glfx library is pretty awesome so I won't link to my semi-working version. In mine, I implemented functionality to section off a portion of an image to blur. Selecting a box or circle of an image to blur.

i.e. Image that is 400 x 600

```
blur( image, destination, blurRadius, boxTopLeft, boxTopRight )
```

or

```
blur( image, destination, blurRadius, centerX, centerY, boxRadius )
```

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by locating the existing blur effect and its public API in the glfx.js codebase. Compare the requested rectangular and circular selection forms, then determine how partial-image coordinates should be represented. Done means blur can be limited to the requested region without changing behavior outside it, with coverage for both selection shapes.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.