# WebGraph Generator File responsible for webgraph generation out of collision map images. - - - ## TWebGraphGenerator Record responsible for generating webgraphs from collision map images. - - - ## TRSChunkLoader.BuildGraph ```pascal function TRSChunkLoader._BuildGraph(map: TMufasaBitmap; white, red: TPointArray): TWebGraphV2; function TRSChunkLoader.BuildGraph(name: String; map: TMufasaBitmap): TWebGraphV2; ``` Magically builds a webgraph for you for a given collision map passed into `map`. The collision map can only have 4 colors: - white ($FFFFFF) for walkable space - black ($000000) for non walkable space - red ($0000FF) for doors (optional) - gray ($333333) for objects (optional) ```{note} This is an internal method. Don't use it if you don't know what you are doing. ``` - - - ## WebGraphGenerator variable Global {ref}`TWebGraphGenerator` variable.