Skip to content

Several names don't have snake case equivalents #44

@OpenSauce04

Description

@OpenSauce04

All keywords, function names, etc from Processing that exist in Propane have had their names converted to follow Ruby's snake_case convention. (e.g. mousePressed --> mouse_pressed)

I have found a few exceptions to this rule

Expected Behavior

All names should have snake_case equivalents

Actual Behavior

There are several names that don't have snake_case equivalents:


mouse_wheel

mouse_wheel is not triggered when the mouse wheel is used, and mouseWheel must be used instead

Doesn't work:

def mouse_wheel(event)
  scroll_count = event.get_count
  puts scroll_count
end

Works:

def mouseWheel(event)
  scroll_count = event.get_count
  puts scroll_count
end

display_width, display_height, pixel_width and pixel_height

Doesn't work:

puts display_width
puts display_height
puts pixel_width
puts pixel_height

Works:

puts displayWidth
puts displayHeight
puts pixelWidth
puts pixelHeight

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions