braille_dot_bit Function

public pure function braille_dot_bit(local_x, local_y) result(bit)

Bit value for one dot within a cell. local_x in {0,1} (left/right), local_y in {0,1,2,3} (top to bottom). Out-of-range positions have no dot and return 0 so an invalid position never sets a spurious bit.

Arguments

Type IntentOptional Attributes Name
integer, intent(in) :: local_x
integer, intent(in) :: local_y

Return Value integer