@@ -134,18 +134,20 @@ You can see the progress on GitHub here:
134134
135135Use this reference chart for the upcoming formulas:
136136
137- | Term | Definition |
138- | :-----: | :--------- |
139- | Width | The width of the area in millimeters
140- | Height | The height of the area in millimeters
141- | TWidth | The width of the tablet's digitizer in millimeters. Can be found in the tablet's configuration file.
142- | THeight | The height of the tablet's digitizer in millimeters. Can be found in the tablet's configuration file.
143- | XOffset | The X offset of the center of the area in millimeters
144- | YOffset | The Y offset of the center of the area in millimeters
145- | LPI | Lines per inch, this is commonly 5080 or 2540
137+ | Term | Definition |
138+ | :---------: | :--------- |
139+ | Width | The width of the area in millimeters
140+ | Height | The height of the area in millimeters
141+ | XOffset | The X offset of the center of the area in millimeters
142+ | YOffset | The Y offset of the center of the area in millimeters
143+ | LPI | Lines per inch, this is commonly 5080 or 2540
144+ | TWidth | The width of the tablet's digitizer in millimeters.
145+ | THeight | The height of the tablet's digitizer in millimeters.
146+ | THorizontal | The width of the tablet's digitizer in number of lines.
147+ | TVertical | The height of the tablet's digitizer in number of lines.
146148{: .table .table-dark }
147149
148- ` TWidth ` and ` THeight ` can be found in the tablet's configuration file.
150+ ` TWidth ` , ` THeight ` , ` THorizontal ` , and ` TVertical ` can be found in the tablet's configuration file.
149151
150152Use the following formulas to get values for OpenTabletDriver's area editor's ` Width ` , ` Height ` , ` XOffset ` , and ` YOffset ` fields:
151153
@@ -187,7 +189,9 @@ XOffset = (Width / 2) + (XPX / 3.937)
187189YOffset = (Height / 2 ) + (XPY / 3.937 )
188190```
189191
190- #### Huion and Gaomon
192+ #### Huion and Gaomon {#gaomon-v1}
193+
194+ Newer Gaomon drivers use another formula. Please see [ Gaomon 2024 and up] ( #gaomon-v2 ) for those.
191195
192196| Term | Definition |
193197| :----: | --- |
@@ -205,3 +209,22 @@ Height = (Bottom - Top) * THeight
205209XOffset = (Width / 2 ) + (Left * TWidth)
206210YOffset = (Height / 2 ) + (Top * THeight)
207211```
212+
213+ #### Gaomon 2024 and up {#gaomon-v2}
214+
215+ | Term | Definition |
216+ | :----------: | --- |
217+ | GaomonWidth | The number of horizontal lines set in the Gaomon driver
218+ | GaomonHeight | The number of vertical lines set in the Gaomon driver
219+ | GaomonX | The X offset of the top left corner of the area in number of horizontal lines
220+ | GaomonY | The Y offset of the top left corner of the area in number of vertical lines
221+ {: .table .table-dark }
222+
223+ ** Formula** :
224+
225+ ``` py
226+ Width = (GaomonWidth / THorizontal) * TWidth
227+ Height = (GaomonHeight / TVertical) * THeight
228+ XOffset = (GaomonX / THorizontal) * TWidth + (Width / 2 )
229+ YOffset = (GaomonY / TVertical) * THeight + (Height / 2 )
230+ ```
0 commit comments