Skip to content

WEBGL - Is ambientMaterial() the same as fill()? #5308

@JetStarBlues

Description

@JetStarBlues

How would this new feature help increase access

  • Document behaviour

Most appropriate sub-area of p5.js?

  • Other (documentation)

Details:

I'm currently working on improving the material documentation.

The current documentation for ambientMaterial() does not mention fill(). I'm wondering if the two are equivalent since they have identical behaviour. See here for live demo.

I.e. is fill(255, 0, 0) the same as ambientMaterial(255, 0, 0)?

If they are equivalent, I would like to mention this in the documenation.

Link to fill (WEBGL) source code.
Link to ambientMaterial source code.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    System Level Changes

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions