processing / processing/processing-website

Reference documentation, problem in code example given for PImage.height

Open
#605 3 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
MDX
Stars
90
Forks
122
Avg merge
1h 43m
Merged PRs (30d)
3

Description

Select the type of content error.

Factual Mistake

Section

Reference

Location of the error

content/references/examples/processing/PImage_height/PImage_height.pde

Describe the error

The code example given in reference section for Pimage_height doesn’t have any mention at all of height in it. It should be updated to be relevant to the heading under which it occurs.

Suggested correction

Perhaps the content could be updated to be parallel in structure to the documentation for Pimage_width

Language

English

Screenshots or references

// this is the code example given, which does not illustrate how PImage.height works and does not even reference it

PImage photo;

void setup() {
size(400, 400);
photo = loadImage("mt-horai.jpg");
}

void draw() {
image(photo, 0, 0);
}

Additional context

No response

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with content/references/examples/processing/PImage_height/PImage_height.pde and compare its example with the documentation for PImage_width. Update the example so it demonstrates PImage.height and matches the heading, then verify the reference page displays the relevant example correctly.

Written by the indexing model from the issue text.

Assessment

Domain
documentation
Issue type
Documentation
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.