Skip to content
This repository was archived by the owner on Jun 18, 2025. It is now read-only.
This repository was archived by the owner on Jun 18, 2025. It is now read-only.

About the done input parameter of Paint functions #97

@Megidd

Description

@Megidd

I investigated the done input parameter of func (r *RGBAPainter) Paint(ss []Span, done bool) {} here:

func (r *RGBAPainter) Paint(ss []Span, done bool) {

My debugger indicates that the done input parameter passed to the function is true multiple times. It is not what I expected. I expected that it should be true once and only for the last span to be drawn. I mean, it should indicate whether the drawing is done. Right?

Why is the done parameter not behaving as I assumed? Am I missing something about it? Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions