propane icon indicating copy to clipboard operation
propane copied to clipboard

Several names don't have snake case equivalents

Open OpenSauce04 opened this issue 2 years ago • 0 comments

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

OpenSauce04 avatar Nov 07 '23 17:11 OpenSauce04