Skip to content

Conversation

@Shreyanshi210205
Copy link
Contributor

Description

This pull request introduces a complete brush system overhaul featuring multiple new and enhanced brush types — including realistic texture simulation and smoother rendering.
It also resolves previous merge conflicts that caused brush state resets and visual inconsistencies across drawing tools.

What's New

  • Added New Brushes:

    • Dashed Brush – Scales correctly with line width, maintaining consistent dash spacing.
    • Paint Brush – Thick, with creamy, blended texture and natural diffusion.
    • Crayon Brush – Grainy wax texture with layered pigment buildup.
    • Oil Pastel Brush – Soft pigment blending with organic irregularity and subtle opacity variation.
  • Improvements & Fixes:

    • Fixed brush rendering issues introduced by previous merges.
    • Unified brush rendering within drawShape() to ensure consistent context restoration.
    • Reduced brush jitter using deterministic pseudo-random jitter generation.
    • Improved paint brush behavior at smaller widths - texture and softness now preserved.
    • Optimized multi-layer compositing for smoother transitions and realistic blending.

WhatsApp Image 2025-10-28 at 23 40 53_035b411e


Semver Changes

  • Patch (bug fix, no new features)
  • Minor (new features, no breaking changes)
  • Major (breaking changes)

Issues

#45

Checklist

@Ayushivam22 Ayushivam22 merged commit 8f02238 into OPCODE-Open-Spring-Fest:main Oct 29, 2025
6 of 7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants