Skip to content

createElement as method of p5.element? #395

Closed
@shiffman

Description

@shiffman

I'm finding I'm doing this quite a bit in some examples:

var div = createDiv('');
var a = createA('#','somelink');
a.parent(div); 

I wonder if it would make sense to allow:

var div = createDiv('');
var a = div.createA('#', 'somelink');

I am not at all sure about this. . .

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions