Jump to content
How to Install Plugins ×
Paint.NET 5.1 is now available! ×

Recommended Posts

Posted

This probably isn't too useful, but I wrote it to generate test cases, and someone else might find it handy. It basically draws a HSV color wheel, centered in the current selection's bounding rectangle. The saturation and value are set on the disk's boundary and center. They're linearly interpolated on the disk. The starting values can be set outside the [0, 1] range. The interpolated values are clamped. This allows transitions to occur over part of the circle. For example, if the saturation is set to 2 on the boundary and 0 in the center, the saturation will be 1 on the outside half of the disk (where the interpolated values are greater than 1), and then transition from 1 to 0 on the inside half. I know it's kind of confusing. The defaults are the value at 1 and the saturation transitioning from 1 to 0 toward the center. It resides in the Render submenu.

Here is the DLL:  RenderColorWheel.ZIP

Posted

Here are a couple of examples.

This is the default.

Color-Wheel-Default.png

 

This is rotated 45 degrees, the saturation set to 0 on the boundary and 3 in the center, and the value set to 2 on the boundary and 0.5 in the center.

 

Color-Wheel-Varied.png

CWExample1.png

CWExample2.png

  • 5 months later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...